diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-07 18:19:19 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-07 18:19:19 +0100 |
commit | cf87b3a5d27636caf7e9085d12ded34039d21356 (patch) | |
tree | 1bca4596e89a12327dd9ca6cd6236e08730b580d /src/backend/download.py | |
parent | 5a3414863014bec7f901cb04b9afd49834e181f4 (diff) |
let's tidy up emerge arguments a bit
Diffstat (limited to 'src/backend/download.py')
-rw-r--r-- | src/backend/download.py | 10 |
1 files changed, 6 insertions, 4 deletions
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: |