diff options
Diffstat (limited to 'src/backend/autoremove.py')
-rw-r--r-- | src/backend/autoremove.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/autoremove.py b/src/backend/autoremove.py index 8dc00ec..ab2471b 100644 --- a/src/backend/autoremove.py +++ b/src/backend/autoremove.py @@ -12,9 +12,9 @@ import sisyphus.syncdb def start(): if sisyphus.checkenv.root(): - portageExec = subprocess.Popen( + p_exe = subprocess.Popen( ['emerge', '--quiet', '--depclean', '--ask']) - portageExec.wait() + p_exe.wait() sisyphus.syncdb.localTable() else: print(sisyphus.getcolor.bright_red + @@ -23,13 +23,13 @@ def start(): def xstart(): - portageExec = subprocess.Popen( + p_exe = subprocess.Popen( ['emerge', '--depclean'], 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() |