Updated for repositories

This commit is contained in:
Dimitris Zlatanidis 2023-03-21 21:55:04 +02:00
parent ca7e41b684
commit cd92ea08e6
2 changed files with 5 additions and 4 deletions

View file

@ -79,16 +79,17 @@ class CheckUpdates(Configs):
def view_message(self) -> None:
compare = self.check()
print()
for repo, comp in compare.items():
if comp:
print(f"\n\n{self.bgreen}There are new updates available for the '{repo}' repository!{self.endc}")
print(f"\n{self.bgreen}There are new updates available for the '{repo}' repository!{self.endc}")
if True not in compare.values():
print(f'\n\n{self.endc}{self.yellow}No updated packages since the last check.{self.endc}')
print(f'{self.endc}{self.yellow}No updated packages since the last check.{self.endc}\n')
def updates(self) -> None:
""" Starting multiprocessing download process. """
message: str = f'Checking for news in the {self.repo_chg_txt} file...'
message: str = f'Checking for news, please wait...'
# Starting multiprocessing
p1 = Process(target=self.view_message)

View file

@ -161,7 +161,7 @@ class UpdateRepository(Configs):
def repository(self) -> None:
""" Starting multiprocessing download process. """
queue = Queue()
message = f'Checking for news in the Changelog.txt file...'
message = f'Checking for news, please wait...'
# Starting multiprocessing
p1 = Process(target=self.check, args=(queue,))