summaryrefslogtreecommitdiff
path: root/src/backend/pkgadd.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/pkgadd.py')
-rw-r--r--src/backend/pkgadd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/pkgadd.py b/src/backend/pkgadd.py
index 091502b..60ecce8 100644
--- a/src/backend/pkgadd.py
+++ b/src/backend/pkgadd.py
@@ -104,7 +104,7 @@ def start(pkgname, ebuild=False, gfx_ui=False, oneshot=False, nodeps=False):
print(f"Killing application in : {i} seconds!")
time.sleep(1)
- sys.exit(app.exec_()) # kill GUI window
+ os.kill(os.getpid(), signal.SIGTERM) # kill GUI window
else:
print(f"{sisyphus.getclr.bright_red}\nCannot proceed!\n{sisyphus.getclr.reset}{sisyphus.getclr.bright_yellow}Please apply the above changes to your portage configuration files and try again!{sisyphus.getclr.reset}")
sys.exit()
@@ -272,7 +272,7 @@ def start(pkgname, ebuild=False, gfx_ui=False, oneshot=False, nodeps=False):
print(f"Killing application in : {i} seconds!")
time.sleep(1)
- sys.exit(app.exec_()) # kill GUI window
+ os.kill(os.getpid(), signal.SIGTERM) # kill GUI window
else:
print(
f"{sisyphus.getclr.bright_red}\nSource package(s) found in the mix!\n{sisyphus.getclr.reset}")
@@ -288,7 +288,7 @@ def start(pkgname, ebuild=False, gfx_ui=False, oneshot=False, nodeps=False):
print(f"Killing application in : {i} seconds!")
time.sleep(1)
- sys.exit(app.exec_()) # kill GUI window
+ os.kill(os.getpid(), signal.SIGTERM) # kill GUI window
else:
print(
f"{sisyphus.getclr.bright_red}\nSource package(s) found in the mix!\n{sisyphus.getclr.reset}")