Fixed for checks

This commit is contained in:
Dimitris Zlatanidis 2023-04-02 16:26:34 +03:00
parent b1a8ac936b
commit de842c7fe4

View file

@ -62,7 +62,7 @@ class CheckUpdates(Configs):
bin_repositories[repo]()
break
if self.repo == '*':
if repo in self.repos.bin_enabled_repos and self.repo == '*':
bin_repositories[repo]()
else:
@ -179,18 +179,18 @@ class CheckUpdates(Configs):
return repo_date != local_date
def view_message(self) -> None:
compare = self.check()
self.check()
new_line: str = '\n\n'
if not compare:
if not self.compare:
new_line: str = '\n'
for repo, comp in compare.items():
for repo, comp in self.compare.items():
if comp:
print(f"{new_line}{self.green}There are new updates available for the{self.endc} "
f"'{self.bgreen}{repo}{self.endc}'{self.green} repository!{self.endc}")
if True not in compare.values():
if True not in self.compare.values():
print(f'{new_line}{self.endc}{self.yellow}No updated packages since the last check.{self.endc}')
def updates(self) -> None: