mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-08 17:24:18 +01:00
Fixed raise and clear the screen
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
1ea79f0dfa
commit
b2ae4748fe
1 changed files with 4 additions and 2 deletions
|
@ -300,7 +300,8 @@ class SBoNetwork(BlackList, Utils):
|
||||||
status = False
|
status = False
|
||||||
pkg = DialogUtil(data, text, title, backtitle, status).checklist()
|
pkg = DialogUtil(data, text, title, backtitle, status).checklist()
|
||||||
if pkg and len(pkg) > 1:
|
if pkg and len(pkg) > 1:
|
||||||
raise SystemExit("\nslpkg: Error: Choose only one package")
|
os.system("clear")
|
||||||
|
raise SystemExit("\nslpkg: Error: Choose only one package\n")
|
||||||
if pkg is None:
|
if pkg is None:
|
||||||
raise SystemExit(1)
|
raise SystemExit(1)
|
||||||
self.name = "".join(pkg)
|
self.name = "".join(pkg)
|
||||||
|
@ -341,7 +342,8 @@ class SBoNetwork(BlackList, Utils):
|
||||||
if self.FAULT:
|
if self.FAULT:
|
||||||
print()
|
print()
|
||||||
self.msg.template(78)
|
self.msg.template(78)
|
||||||
print(f"| Package {self.prgnam} {self.red} {self.FAULT} {self.endc}")
|
print(f"| Package {self.prgnam} {self.red} {self.FAULT} "
|
||||||
|
f"{self.endc}")
|
||||||
self.msg.template(78)
|
self.msg.template(78)
|
||||||
else:
|
else:
|
||||||
sources = []
|
sources = []
|
||||||
|
|
Loading…
Reference in a new issue