mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-21 19:27:47 +01:00
Updated for repositories
This commit is contained in:
parent
ca7e41b684
commit
cd92ea08e6
2 changed files with 5 additions and 4 deletions
|
@ -79,16 +79,17 @@ class CheckUpdates(Configs):
|
||||||
|
|
||||||
def view_message(self) -> None:
|
def view_message(self) -> None:
|
||||||
compare = self.check()
|
compare = self.check()
|
||||||
|
print()
|
||||||
for repo, comp in compare.items():
|
for repo, comp in compare.items():
|
||||||
if comp:
|
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():
|
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:
|
def updates(self) -> None:
|
||||||
""" Starting multiprocessing download process. """
|
""" 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
|
# Starting multiprocessing
|
||||||
p1 = Process(target=self.view_message)
|
p1 = Process(target=self.view_message)
|
||||||
|
|
|
@ -161,7 +161,7 @@ class UpdateRepository(Configs):
|
||||||
def repository(self) -> None:
|
def repository(self) -> None:
|
||||||
""" Starting multiprocessing download process. """
|
""" Starting multiprocessing download process. """
|
||||||
queue = Queue()
|
queue = Queue()
|
||||||
message = f'Checking for news in the Changelog.txt file...'
|
message = f'Checking for news, please wait...'
|
||||||
|
|
||||||
# Starting multiprocessing
|
# Starting multiprocessing
|
||||||
p1 = Process(target=self.check, args=(queue,))
|
p1 = Process(target=self.check, args=(queue,))
|
||||||
|
|
Loading…
Reference in a new issue