From cd0bbe764b93d1b3fb12a35dd133c6319905f77a Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 31 May 2024 17:38:52 +0300 Subject: [PATCH] Updated to json format Signed-off-by: Dimitris Zlatanidis --- ChangeLog.txt | 3 ++- slpkg/upgrade.py | 7 ------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 1d04e3e8..923c2f8f 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -4,11 +4,12 @@ - Updated: * Updated message for invalid package version + * Updated upgrade.log file to json format ### 5.0.9 - 23/05/2024 - Added: - * Inform message for invalid package version with the upgrade commandy + * Inform message for invalid package version with the upgrade command * Config to delete sources after build or install packages ### 5.0.8 - 10/05/2024 diff --git a/slpkg/upgrade.py b/slpkg/upgrade.py index 0b55ce5e..a9c38903 100644 --- a/slpkg/upgrade.py +++ b/slpkg/upgrade.py @@ -147,15 +147,8 @@ class Upgrade(Configs): # pylint: disable=[R0902] 'package': self.data[name]['package'], 'error': str(err) } - self.upgrade_log_file.write_text(json.dumps(log, indent=4), encoding='utf-8') - # with self.upgrade_log_file.open('a', encoding='utf-8') as log: - # log.write(f"Installed: {installed}, " - # f"Repository: {self.data[name]['package']}, " - # f"Error: {err}, " - # f"Repo: {self.repository}\n") - def check_packages(self) -> None: """Check only which packages are upgradeable.""" self.check_run: bool = True