From cf87b3a5d27636caf7e9085d12ded34039d21356 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 7 Apr 2023 18:19:19 +0100 Subject: let's tidy up emerge arguments a bit --- src/backend/download.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/backend') diff --git a/src/backend/download.py b/src/backend/download.py index 7e2d4ec..4d435de 100644 --- a/src/backend/download.py +++ b/src/backend/download.py @@ -25,9 +25,12 @@ def start(redir_out=False, dl_world=False): dl_list = [f'={package}' for package in bin_list] + args = ['--nodeps', '--quiet', '--verbose', '--getbinpkg', '--fetchonly', '--rebuilt-binaries', + '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list) + if redir_out: - p_exe = subprocess.Popen(['emerge', '--nodeps', '--quiet', '--verbose', '--getbinpkg', '--fetchonly', '--rebuilt-binaries', - '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list), stdout=subprocess.PIPE, stderr=subprocess.PIPE) + p_exe = subprocess.Popen( + ['emerge'], + args, stdout=subprocess.PIPE, stderr=subprocess.PIPE) # kill portage if the program dies or it's terminated by the user atexit.register(sisyphus.killemerge.start, p_exe) @@ -36,8 +39,7 @@ def start(redir_out=False, dl_world=False): p_exe.wait() else: - p_exe = subprocess.Popen(['emerge', '--nodeps', '--quiet', '--verbose', '--getbinpkg', '--fetchonly', - '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list)) + p_exe = subprocess.Popen(['emerge'] + args) try: p_exe.wait() except KeyboardInterrupt: -- cgit v1.2.3