summaryrefslogtreecommitdiff
path: root/src/backend/download.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-09 20:28:31 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-03-09 20:28:31 +0000
commit3b26461f072cc897ee233d18a32f3b0f0ea83c23 (patch)
treeb7ec5da61fb00b68e376da5fe7ac87de2b0c2f07 /src/backend/download.py
parent7fc4f9f40d1f1a45164759d796da94c18aa1f51a (diff)
fetchList -> dl_list; gentooRepoDir -> g_src_dir; redcoreRepoDir -> r_src_dir; portageConfigDir -> p_cfg_dir; portageCacheDir -> p_cch_dir; portageDistDir -> p_dst_dir; portageMetadataDir -> p_mtd_dir
Diffstat (limited to 'src/backend/download.py')
-rw-r--r--src/backend/download.py48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/backend/download.py b/src/backend/download.py
index f6f2651..507f893 100644
--- a/src/backend/download.py
+++ b/src/backend/download.py
@@ -10,41 +10,41 @@ import sisyphus.killemerge
def pkgbinpkgonly():
- fetchList = []
+ dl_list = []
bin_list, src_list, need_cfg = pickle.load(open(os.path.join(
- sisyphus.getfs.portageMetadataDir, "sisyphus_pkgdeps.pickle"), "rb"))
+ sisyphus.getfs.p_mtd_dir, "sisyphus_pkgdeps.pickle"), "rb"))
for index, binary in enumerate(['=' + package for package in bin_list]):
- fetchList.append(binary)
+ dl_list.append(binary)
p_exe = subprocess.Popen(['emerge', '--nodeps', '--quiet', '--verbose', '--getbinpkg', '--getbinpkgonly', '--fetchonly',
- '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(fetchList))
+ '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list))
p_exe.wait()
def pkgbinpkg():
- fetchList = []
+ dl_list = []
bin_list, src_list, need_cfg = pickle.load(open(os.path.join(
- sisyphus.getfs.portageMetadataDir, "sisyphus_pkgdeps.pickle"), "rb"))
+ sisyphus.getfs.p_mtd_dir, "sisyphus_pkgdeps.pickle"), "rb"))
for index, binary in enumerate(['=' + package for package in bin_list]):
- fetchList.append(binary)
+ dl_list.append(binary)
p_exe = subprocess.Popen(['emerge', '--nodeps', '--quiet', '--verbose', '--getbinpkg', '--fetchonly',
- '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(fetchList))
+ '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list))
p_exe.wait()
def xpkgbinpkgonly():
- fetchList = []
+ dl_list = []
bin_list, src_list, need_cfg = pickle.load(open(os.path.join(
- sisyphus.getfs.portageMetadataDir, "sisyphus_pkgdeps.pickle"), "rb"))
+ sisyphus.getfs.p_mtd_dir, "sisyphus_pkgdeps.pickle"), "rb"))
for index, binary in enumerate(['=' + package for package in bin_list]):
- fetchList.append(binary)
+ dl_list.append(binary)
p_exe = subprocess.Popen(['emerge', '--nodeps', '--quiet', '--verbose', '--getbinpkg', '--getbinpkgonly', '--fetchonly', '--rebuilt-binaries',
- '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(fetchList), 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)
@@ -55,41 +55,41 @@ def xpkgbinpkgonly():
def worldbinpkgonly():
- fetchList = []
+ dl_list = []
bin_list, src_list, need_cfg = pickle.load(open(os.path.join(
- sisyphus.getfs.portageMetadataDir, "sisyphus_worlddeps.pickle"), "rb"))
+ sisyphus.getfs.p_mtd_dir, "sisyphus_worlddeps.pickle"), "rb"))
for index, binary in enumerate(['=' + package for package in bin_list]):
- fetchList.append(binary)
+ dl_list.append(binary)
p_exe = subprocess.Popen(['emerge', '--nodeps', '--quiet', '--verbose', '--getbinpkg', '--getbinpkgonly', '--fetchonly',
- '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(fetchList))
+ '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list))
p_exe.wait()
def worldbinpkg():
- fetchList = []
+ dl_list = []
bin_list, src_list, need_cfg = pickle.load(open(os.path.join(
- sisyphus.getfs.portageMetadataDir, "sisyphus_worlddeps.pickle"), "rb"))
+ sisyphus.getfs.p_mtd_dir, "sisyphus_worlddeps.pickle"), "rb"))
for index, binary in enumerate(['=' + package for package in bin_list]):
- fetchList.append(binary)
+ dl_list.append(binary)
p_exe = subprocess.Popen(['emerge', '--nodeps', '--quiet', '--verbose', '--getbinpkg', '--fetchonly',
- '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(fetchList))
+ '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(dl_list))
p_exe.wait()
def xworldbinpkgonly():
- fetchList = []
+ dl_list = []
bin_list, src_list, need_cfg = pickle.load(open(os.path.join(
- sisyphus.getfs.portageMetadataDir, "sisyphus_worlddeps.pickle"), "rb"))
+ sisyphus.getfs.p_mtd_dir, "sisyphus_worlddeps.pickle"), "rb"))
for index, binary in enumerate(['=' + package for package in bin_list]):
- fetchList.append(binary)
+ dl_list.append(binary)
p_exe = subprocess.Popen(['emerge', '--nodeps', '--quiet', '--verbose', '--getbinpkg', '--getbinpkgonly', '--fetchonly', '--rebuilt-binaries',
- '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(fetchList), 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)