mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-03 08:46:32 +01:00
Added message_done method
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
280e072e5a
commit
3dc08566eb
1 changed files with 8 additions and 3 deletions
|
@ -771,9 +771,7 @@ class Update:
|
|||
for repo in enabled:
|
||||
if check_for_local_repos(repo) is True:
|
||||
continue
|
||||
print(f"{self.grey}Check repository "
|
||||
f"[{self.cyan}{repo}{self.grey}] ... "
|
||||
f"{self.endc}", end="", flush=True)
|
||||
self.done_msg(repo)
|
||||
if repo in default:
|
||||
getattr(Initialization(False), repo)()
|
||||
print(self.done, end="")
|
||||
|
@ -785,6 +783,13 @@ class Update:
|
|||
print() # new line at end
|
||||
raise SystemExit()
|
||||
|
||||
def done_msg(self, repo):
|
||||
"""Printing done message
|
||||
"""
|
||||
print(f"{self.grey}Check repository "
|
||||
f"[{self.cyan}{repo}{self.grey}] ... "
|
||||
f"{self.endc}", end="", flush=True)
|
||||
|
||||
|
||||
def check_exists_repositories(repo):
|
||||
"""Checking if repositories exists by PACKAGES.TXT file
|
||||
|
|
Loading…
Add table
Reference in a new issue