diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-11 05:32:19 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-11 05:32:19 +0000 |
commit | a9d87ee5bd0c98b6daae9ddf307c634da9c35551 (patch) | |
tree | 3ae25a65b1511d7a9368fa21b4779a6880a132b7 /src/backend/download.py | |
parent | 4edf9a7f554f183ccc34b0e57e734a2cbd6f5b9d (diff) |
run autopep8 on the code
Diffstat (limited to 'src/backend/download.py')
-rw-r--r-- | src/backend/download.py | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/backend/download.py b/src/backend/download.py index 1d78eaf..32e27a6 100644 --- a/src/backend/download.py +++ b/src/backend/download.py @@ -11,40 +11,40 @@ import sisyphus.killemerge def dl_pbin_only(): dl_list = [] - bin_list, src_list, need_cfg = pickle.load(open(os.path.join( - sisyphus.getfs.p_mtd_dir, "sisyphus_pkgdeps.pickle"), "rb")) + bin_list, src_list, need_cfg = pickle.load( + open(os.path.join(sisyphus.getfs.p_mtd_dir, "sisyphus_pkgdeps.pickle"), "rb")) for index, pbin in enumerate(['=' + package for package in bin_list]): dl_list.append(pbin) p_exe = subprocess.Popen(['emerge', '--nodeps', '--quiet', '--verbose', '--getbinpkg', '--getbinpkgonly', '--fetchonly', - '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list)) + '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list)) p_exe.wait() def dl_pbin(): dl_list = [] - bin_list, src_list, need_cfg = pickle.load(open(os.path.join( - sisyphus.getfs.p_mtd_dir, "sisyphus_pkgdeps.pickle"), "rb")) + bin_list, src_list, need_cfg = pickle.load( + open(os.path.join(sisyphus.getfs.p_mtd_dir, "sisyphus_pkgdeps.pickle"), "rb")) for index, pbin in enumerate(['=' + package for package in bin_list]): dl_list.append(pbin) p_exe = subprocess.Popen(['emerge', '--nodeps', '--quiet', '--verbose', '--getbinpkg', '--fetchonly', - '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list)) + '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list)) p_exe.wait() def xdl_pbin_only(): dl_list = [] - bin_list, src_list, need_cfg = pickle.load(open(os.path.join( - sisyphus.getfs.p_mtd_dir, "sisyphus_pkgdeps.pickle"), "rb")) + bin_list, src_list, need_cfg = pickle.load( + open(os.path.join(sisyphus.getfs.p_mtd_dir, "sisyphus_pkgdeps.pickle"), "rb")) for index, pbin in enumerate(['=' + package for package in bin_list]): dl_list.append(pbin) p_exe = subprocess.Popen(['emerge', '--nodeps', '--quiet', '--verbose', '--getbinpkg', '--getbinpkgonly', '--fetchonly', '--rebuilt-binaries', - '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list), stdout=subprocess.PIPE, stderr=subprocess.PIPE) + '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list), 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) @@ -56,40 +56,40 @@ def xdl_pbin_only(): def dl_wpbin_only(): dl_list = [] - bin_list, src_list, need_cfg = pickle.load(open(os.path.join( - sisyphus.getfs.p_mtd_dir, "sisyphus_worlddeps.pickle"), "rb")) + bin_list, src_list, need_cfg = pickle.load( + open(os.path.join(sisyphus.getfs.p_mtd_dir, "sisyphus_worlddeps.pickle"), "rb")) for index, pbin in enumerate(['=' + package for package in bin_list]): dl_list.append(pbin) p_exe = subprocess.Popen(['emerge', '--nodeps', '--quiet', '--verbose', '--getbinpkg', '--getbinpkgonly', '--fetchonly', - '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list)) + '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list)) p_exe.wait() def dl_wpbin(): dl_list = [] - bin_list, src_list, need_cfg = pickle.load(open(os.path.join( - sisyphus.getfs.p_mtd_dir, "sisyphus_worlddeps.pickle"), "rb")) + bin_list, src_list, need_cfg = pickle.load( + open(os.path.join(sisyphus.getfs.p_mtd_dir, "sisyphus_worlddeps.pickle"), "rb")) for index, pbin in enumerate(['=' + package for package in bin_list]): dl_list.append(pbin) p_exe = subprocess.Popen(['emerge', '--nodeps', '--quiet', '--verbose', '--getbinpkg', '--fetchonly', - '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list)) + '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list)) p_exe.wait() def xdl_wpbin_only(): dl_list = [] - bin_list, src_list, need_cfg = pickle.load(open(os.path.join( - sisyphus.getfs.p_mtd_dir, "sisyphus_worlddeps.pickle"), "rb")) + bin_list, src_list, need_cfg = pickle.load( + open(os.path.join(sisyphus.getfs.p_mtd_dir, "sisyphus_worlddeps.pickle"), "rb")) for index, pbin in enumerate(['=' + package for package in bin_list]): dl_list.append(pbin) p_exe = subprocess.Popen(['emerge', '--nodeps', '--quiet', '--verbose', '--getbinpkg', '--getbinpkgonly', '--fetchonly', '--rebuilt-binaries', - '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list), stdout=subprocess.PIPE, stderr=subprocess.PIPE) + '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list), 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) |