summaryrefslogtreecommitdiff
path: root/src/backend/solvedeps.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-09 20:18:46 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-03-09 20:18:46 +0000
commit7fc4f9f40d1f1a45164759d796da94c18aa1f51a (patch)
treea530c096ee3f6d2c88d7c40f894afbe4ec4bd61d /src/backend/solvedeps.py
parentec7deec5b851d582f7ada4803033d5044673ecf3 (diff)
isSane -> is_sane; needsConfig -> need_cfg; isBinary -> is_bin; isSource -> is_src; areBinaries -> bin_list; areSources -> src_list
Diffstat (limited to 'src/backend/solvedeps.py')
-rw-r--r--src/backend/solvedeps.py52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/backend/solvedeps.py b/src/backend/solvedeps.py
index c51ade0..bc6f4bc 100644
--- a/src/backend/solvedeps.py
+++ b/src/backend/solvedeps.py
@@ -9,75 +9,75 @@ import sisyphus.getfs
@animation.wait('resolving dependencies')
def pkg(pkgname):
- areBinaries = []
- areSources = []
- needsConfig = int()
+ bin_list = []
+ src_list = []
+ need_cfg = int()
p_exe = subprocess.Popen(['emerge', '--quiet', '--pretend', '--getbinpkg', '--rebuilt-binaries', '--with-bdeps=y',
'--misspell-suggestion=n', '--fuzzy-search=n'] + list(pkgname), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = p_exe.communicate()
for p_out in stderr.decode('utf-8').splitlines():
if "The following keyword changes are necessary to proceed:" in p_out:
- needsConfig = int(1)
+ need_cfg = int(1)
if "The following mask changes are necessary to proceed:" in p_out:
- needsConfig = int(1)
+ need_cfg = int(1)
if "The following USE changes are necessary to proceed:" in p_out:
- needsConfig = int(1)
+ need_cfg = int(1)
if "The following REQUIRED_USE flag constraints are unsatisfied:" in p_out:
- needsConfig = int(1)
+ need_cfg = int(1)
if "One of the following masked packages is required to complete your request:" in p_out:
- needsConfig = int(1)
+ need_cfg = int(1)
for p_out in stdout.decode('utf-8').splitlines():
if "[binary" in p_out:
- isBinary = p_out.split("]")[1].split("[")[0].strip(" ")
- areBinaries.append(isBinary)
+ is_bin = p_out.split("]")[1].split("[")[0].strip(" ")
+ bin_list.append(is_bin)
if "[ebuild" in p_out:
- isSource = p_out.split("]")[1].split("[")[0].strip(" ")
- areSources.append(isSource)
+ is_src = p_out.split("]")[1].split("[")[0].strip(" ")
+ src_list.append(is_src)
- pickle.dump([areBinaries, areSources, needsConfig], open(os.path.join(
+ pickle.dump([bin_list, src_list, need_cfg], open(os.path.join(
sisyphus.getfs.portageMetadataDir, "sisyphus_pkgdeps.pickle"), "wb"))
@animation.wait('resolving dependencies')
def world():
- areBinaries = []
- areSources = []
- needsConfig = int()
+ bin_list = []
+ src_list = []
+ need_cfg = int()
p_exe = subprocess.Popen(['emerge', '--quiet', '--update', '--deep', '--newuse', '--pretend', '--getbinpkg', '--rebuilt-binaries',
'--backtrack=100', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n', '@world'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = p_exe.communicate()
for p_out in stderr.decode('utf-8').splitlines():
if "The following keyword changes are necessary to proceed:" in p_out:
- needsConfig = int(1)
+ need_cfg = int(1)
if "The following mask changes are necessary to proceed:" in p_out:
- needsConfig = int(1)
+ need_cfg = int(1)
if "The following USE changes are necessary to proceed:" in p_out:
- needsConfig = int(1)
+ need_cfg = int(1)
if "The following REQUIRED_USE flag constraints are unsatisfied:" in p_out:
- needsConfig = int(1)
+ need_cfg = int(1)
if "One of the following masked packages is required to complete your request:" in p_out:
- needsConfig = int(1)
+ need_cfg = int(1)
for p_out in stdout.decode('utf-8').splitlines():
if "[binary" in p_out:
- isBinary = p_out.split("]")[1].split("[")[0].strip(" ")
- areBinaries.append(isBinary)
+ is_bin = p_out.split("]")[1].split("[")[0].strip(" ")
+ bin_list.append(is_bin)
if "[ebuild" in p_out:
- isSource = p_out.split("]")[1].split("[")[0].strip(" ")
- areSources.append(isSource)
+ is_src = p_out.split("]")[1].split("[")[0].strip(" ")
+ src_list.append(is_src)
- pickle.dump([areBinaries, areSources, needsConfig], open(os.path.join(
+ pickle.dump([bin_list, src_list, need_cfg], open(os.path.join(
sisyphus.getfs.portageMetadataDir, "sisyphus_worlddeps.pickle"), "wb"))