mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated print
This commit is contained in:
parent
95922fb43e
commit
c5a9221f53
2 changed files with 5 additions and 5 deletions
|
@ -16,7 +16,7 @@ class CheckUpdates:
|
||||||
|
|
||||||
def check(self):
|
def check(self):
|
||||||
""" Checks the ChangeLogs and returns True or False. """
|
""" 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_date = 0
|
||||||
local_chg_txt = (f'{self.configs.sbo_repo_path}/'
|
local_chg_txt = (f'{self.configs.sbo_repo_path}/'
|
||||||
f'{self.configs.chglog_txt}')
|
f'{self.configs.chglog_txt}')
|
||||||
|
@ -34,6 +34,6 @@ class CheckUpdates:
|
||||||
|
|
||||||
def updates(self):
|
def updates(self):
|
||||||
if self.check():
|
if self.check():
|
||||||
print('\nThere are new updates available!\n')
|
print('\n\nThere are new updates available!\n')
|
||||||
else:
|
else:
|
||||||
print('\nNo updated packages since the last check.\n')
|
print('\n\nNo updated packages since the last check.\n')
|
||||||
|
|
|
@ -28,9 +28,9 @@ class UpdateRepository:
|
||||||
check_updates = CheckUpdates()
|
check_updates = CheckUpdates()
|
||||||
|
|
||||||
if not check_updates.check():
|
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:
|
else:
|
||||||
print('\nThere are new updates available!')
|
print('\n\nThere are new updates available!')
|
||||||
|
|
||||||
view.question()
|
view.question()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue