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:
|
for repo in enabled:
|
||||||
if check_for_local_repos(repo) is True:
|
if check_for_local_repos(repo) is True:
|
||||||
continue
|
continue
|
||||||
print(f"{self.grey}Check repository "
|
self.done_msg(repo)
|
||||||
f"[{self.cyan}{repo}{self.grey}] ... "
|
|
||||||
f"{self.endc}", end="", flush=True)
|
|
||||||
if repo in default:
|
if repo in default:
|
||||||
getattr(Initialization(False), repo)()
|
getattr(Initialization(False), repo)()
|
||||||
print(self.done, end="")
|
print(self.done, end="")
|
||||||
|
@ -785,6 +783,13 @@ class Update:
|
||||||
print() # new line at end
|
print() # new line at end
|
||||||
raise SystemExit()
|
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):
|
def check_exists_repositories(repo):
|
||||||
"""Checking if repositories exists by PACKAGES.TXT file
|
"""Checking if repositories exists by PACKAGES.TXT file
|
||||||
|
|
Loading…
Add table
Reference in a new issue