From 36e2fca70465e2e658570bcdf276d5ca644125bb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 9 Mar 2023 19:05:15 +0000 Subject: portageExec -> p_exe --- src/backend/uninstall.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/backend/uninstall.py') 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() -- cgit v1.2.3