mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-07 17:24:57 +01:00
Bugfix stderr output
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
d972a665fd
commit
c3e169682a
1 changed files with 5 additions and 9 deletions
|
@ -35,7 +35,6 @@ class Updates:
|
||||||
self.repo = repo
|
self.repo = repo
|
||||||
self.meta = _meta_
|
self.meta = _meta_
|
||||||
self.green = _meta_.color["GREEN"]
|
self.green = _meta_.color["GREEN"]
|
||||||
self.grey = _meta_.color["GREY"]
|
|
||||||
self.endc = _meta_.color["ENDC"]
|
self.endc = _meta_.color["ENDC"]
|
||||||
self.msg = Msg()
|
self.msg = Msg()
|
||||||
self.check = 2
|
self.check = 2
|
||||||
|
@ -78,13 +77,11 @@ class Updates:
|
||||||
try:
|
try:
|
||||||
self.check = self.all_repos[self.repo]()
|
self.check = self.all_repos[self.repo]()
|
||||||
except OSError:
|
except OSError:
|
||||||
usage(self.repo)
|
usage(self.repo, 1)
|
||||||
raise SystemExit()
|
|
||||||
elif self.repo in self.meta.repositories:
|
elif self.repo in self.meta.repositories:
|
||||||
self.check = self._init.custom(self.repo)
|
self.check = self._init.custom(self.repo)
|
||||||
else:
|
else:
|
||||||
usage(self.repo)
|
usage(self.repo, 1)
|
||||||
raise SystemExit()
|
|
||||||
self.status_bar()
|
self.status_bar()
|
||||||
self.status()
|
self.status()
|
||||||
self.print_status(self.repo)
|
self.print_status(self.repo)
|
||||||
|
@ -99,8 +96,7 @@ class Updates:
|
||||||
try:
|
try:
|
||||||
self.check = self.all_repos[repo]()
|
self.check = self.all_repos[repo]()
|
||||||
except OSError:
|
except OSError:
|
||||||
usage(self.repo)
|
usage(self.repo, 1)
|
||||||
raise SystemExit()
|
|
||||||
elif repo in self.meta.repositories:
|
elif repo in self.meta.repositories:
|
||||||
self.check = self._init.custom(repo)
|
self.check = self._init.custom(repo)
|
||||||
self.status()
|
self.status()
|
||||||
|
@ -132,5 +128,5 @@ class Updates:
|
||||||
cmd = "Repository is updated."
|
cmd = "Repository is updated."
|
||||||
if self.count_news > 0:
|
if self.count_news > 0:
|
||||||
cmd = "Run the command 'slpkg update'."
|
cmd = "Run the command 'slpkg update'."
|
||||||
print(f"{self.grey}From {self.count_repo} repositories need"
|
print(f"From {self.count_repo} repositories need"
|
||||||
f" {self.count_news} updating. {cmd}{self.endc}", end="\n")
|
f" {self.count_news} updating. {cmd}", end="\n")
|
||||||
|
|
Loading…
Reference in a new issue