summaryrefslogtreecommitdiff
path: root/src/backend/forceuninstall.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/forceuninstall.py')
-rw-r--r--src/backend/forceuninstall.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/forceuninstall.py b/src/backend/forceuninstall.py
index b027004..9329695 100644
--- a/src/backend/forceuninstall.py
+++ b/src/backend/forceuninstall.py
@@ -7,8 +7,8 @@ import sisyphus.database
def start(pkgname):
if sisyphus.check.root():
- portageExec = subprocess.Popen(['emerge', '--quiet', '--unmerge', '--ask'] + list(pkgname))
- portageExec.wait()
+ portageExec = subprocess.Popen(['emerge', '--quiet', '--unmerge', '--ask'] + list(pkgname), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ stdout, stderr = portageExec.communicate()
sisyphus.database.syncLocal()
else:
sys.exit("\nYou need root permissions to do this, exiting!\n")