Updated to json format

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2024-05-31 17:38:52 +03:00
parent c3f384f9af
commit cd0bbe764b
2 changed files with 2 additions and 8 deletions

View file

@ -4,11 +4,12 @@
- Updated: - Updated:
* Updated message for invalid package version * Updated message for invalid package version
* Updated upgrade.log file to json format
### 5.0.9 - 23/05/2024 ### 5.0.9 - 23/05/2024
- Added: - 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 * Config to delete sources after build or install packages
### 5.0.8 - 10/05/2024 ### 5.0.8 - 10/05/2024

View file

@ -147,15 +147,8 @@ class Upgrade(Configs): # pylint: disable=[R0902]
'package': self.data[name]['package'], 'package': self.data[name]['package'],
'error': str(err) 'error': str(err)
} }
self.upgrade_log_file.write_text(json.dumps(log, indent=4), encoding='utf-8') 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: def check_packages(self) -> None:
"""Check only which packages are upgradeable.""" """Check only which packages are upgradeable."""
self.check_run: bool = True self.check_run: bool = True