mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-11 20:48:11 +01:00
Fixed for checks
This commit is contained in:
parent
b1a8ac936b
commit
de842c7fe4
1 changed files with 5 additions and 5 deletions
|
@ -62,7 +62,7 @@ class CheckUpdates(Configs):
|
||||||
bin_repositories[repo]()
|
bin_repositories[repo]()
|
||||||
break
|
break
|
||||||
|
|
||||||
if self.repo == '*':
|
if repo in self.repos.bin_enabled_repos and self.repo == '*':
|
||||||
bin_repositories[repo]()
|
bin_repositories[repo]()
|
||||||
else:
|
else:
|
||||||
|
|
||||||
|
@ -179,18 +179,18 @@ class CheckUpdates(Configs):
|
||||||
return repo_date != local_date
|
return repo_date != local_date
|
||||||
|
|
||||||
def view_message(self) -> None:
|
def view_message(self) -> None:
|
||||||
compare = self.check()
|
self.check()
|
||||||
|
|
||||||
new_line: str = '\n\n'
|
new_line: str = '\n\n'
|
||||||
if not compare:
|
if not self.compare:
|
||||||
new_line: str = '\n'
|
new_line: str = '\n'
|
||||||
|
|
||||||
for repo, comp in compare.items():
|
for repo, comp in self.compare.items():
|
||||||
if comp:
|
if comp:
|
||||||
print(f"{new_line}{self.green}There are new updates available for the{self.endc} "
|
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}")
|
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}')
|
print(f'{new_line}{self.endc}{self.yellow}No updated packages since the last check.{self.endc}')
|
||||||
|
|
||||||
def updates(self) -> None:
|
def updates(self) -> None:
|
||||||
|
|
Loading…
Add table
Reference in a new issue