mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-20 10:26:44 +01:00
Fixed stderr error output
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
b2ae4748fe
commit
ba8193b90a
3 changed files with 4 additions and 5 deletions
|
@ -61,8 +61,7 @@ class Auto:
|
||||||
try:
|
try:
|
||||||
self.choice = input(" > ")
|
self.choice = input(" > ")
|
||||||
except EOFError:
|
except EOFError:
|
||||||
print()
|
raise SystemExit("\n")
|
||||||
raise SystemExit()
|
|
||||||
if self.choice in self.commands.keys():
|
if self.choice in self.commands.keys():
|
||||||
print(f" \x1b[1A{self.cyan}{self.commands[self.choice]}"
|
print(f" \x1b[1A{self.cyan}{self.commands[self.choice]}"
|
||||||
f"{self.endc}", end="\n\n")
|
f"{self.endc}", end="\n\n")
|
||||||
|
|
|
@ -43,8 +43,8 @@ class DialogUtil:
|
||||||
def imp_dialog(self):
|
def imp_dialog(self):
|
||||||
try:
|
try:
|
||||||
from dialog import Dialog
|
from dialog import Dialog
|
||||||
except ImportError:
|
except ImportError as er:
|
||||||
raise SystemExit()
|
raise SystemExit(er)
|
||||||
self.d = Dialog(dialog="dialog", autowidgetsize=True)
|
self.d = Dialog(dialog="dialog", autowidgetsize=True)
|
||||||
|
|
||||||
def checklist(self):
|
def checklist(self):
|
||||||
|
|
|
@ -53,6 +53,6 @@ def choose_upg(packages):
|
||||||
if name in packages:
|
if name in packages:
|
||||||
selected_packages.append(name)
|
selected_packages.append(name)
|
||||||
if not selected_packages:
|
if not selected_packages:
|
||||||
raise SystemExit()
|
raise SystemExit(1)
|
||||||
print()
|
print()
|
||||||
return selected_packages
|
return selected_packages
|
||||||
|
|
Loading…
Reference in a new issue