diff options
Diffstat (limited to 'src/backend/uninstall.py')
-rw-r--r-- | src/backend/uninstall.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/backend/uninstall.py b/src/backend/uninstall.py index 77fa479..3d31da5 100644 --- a/src/backend/uninstall.py +++ b/src/backend/uninstall.py @@ -12,9 +12,9 @@ import sisyphus.syncdb def start(pkgname): if sisyphus.checkenv.root(): - portageExec = subprocess.Popen( + p_exe = subprocess.Popen( ['emerge', '--quiet', '--depclean', '--ask'] + list(pkgname)) - portageExec.wait() + p_exe.wait() sisyphus.syncdb.localTable() else: print(sisyphus.getcolor.bright_red + @@ -24,9 +24,9 @@ def start(pkgname): def fstart(pkgname): if sisyphus.checkenv.root(): - portageExec = subprocess.Popen( + p_exe = subprocess.Popen( ['emerge', '--quiet', '--unmerge', '--ask'] + list(pkgname)) - portageExec.wait() + p_exe.wait() sisyphus.syncdb.localTable() else: print(sisyphus.getcolor.bright_red + @@ -35,13 +35,13 @@ def fstart(pkgname): def xstart(pkgname): - portageExec = subprocess.Popen( + p_exe = subprocess.Popen( ['emerge', '--depclean'] + pkgname, stdout=subprocess.PIPE, stderr=subprocess.PIPE) # kill portage if the program dies or it's terminated by the user - atexit.register(sisyphus.killemerge.start, portageExec) + atexit.register(sisyphus.killemerge.start, p_exe) - for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): + for portageOutput in io.TextIOWrapper(p_exe.stdout, encoding="utf-8"): print(portageOutput.rstrip()) - portageExec.wait() + p_exe.wait() sisyphus.syncdb.localTable() |