From c5a9221f53e2b843e2167ff8bf6fcd395e75b910 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 21 Dec 2022 20:47:37 +0200 Subject: [PATCH] Updated print --- slpkg/check_updates.py | 6 +++--- slpkg/update_repository.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/slpkg/check_updates.py b/slpkg/check_updates.py index 26e315de..8dd62b46 100644 --- a/slpkg/check_updates.py +++ b/slpkg/check_updates.py @@ -16,7 +16,7 @@ class CheckUpdates: def check(self): """ Checks the ChangeLogs and returns True or False. """ - print('Checking for news in the Changelog.txt file...') + print(end='\rChecking for news in the Changelog.txt file... ') local_date = 0 local_chg_txt = (f'{self.configs.sbo_repo_path}/' f'{self.configs.chglog_txt}') @@ -34,6 +34,6 @@ class CheckUpdates: def updates(self): if self.check(): - print('\nThere are new updates available!\n') + print('\n\nThere are new updates available!\n') else: - print('\nNo updated packages since the last check.\n') + print('\n\nNo updated packages since the last check.\n') diff --git a/slpkg/update_repository.py b/slpkg/update_repository.py index d1042548..80de90de 100644 --- a/slpkg/update_repository.py +++ b/slpkg/update_repository.py @@ -28,9 +28,9 @@ class UpdateRepository: check_updates = CheckUpdates() if not check_updates.check(): - print('\nNo changes in ChangeLog.txt between your last update and now.') + print('\n\nNo changes in ChangeLog.txt between your last update and now.') else: - print('\nThere are new updates available!') + print('\n\nThere are new updates available!') view.question()