mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-05 11:02:14 +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
|
||||
pkg = DialogUtil(data, text, title, backtitle, status).checklist()
|
||||
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:
|
||||
raise SystemExit(1)
|
||||
self.name = "".join(pkg)
|
||||
|
@ -341,7 +342,8 @@ class SBoNetwork(BlackList, Utils):
|
|||
if self.FAULT:
|
||||
print()
|
||||
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)
|
||||
else:
|
||||
sources = []
|
||||
|
|
Loading…
Reference in a new issue