From 7fc4f9f40d1f1a45164759d796da94c18aa1f51a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 9 Mar 2023 20:18:46 +0000 Subject: isSane -> is_sane; needsConfig -> need_cfg; isBinary -> is_bin; isSource -> is_src; areBinaries -> bin_list; areSources -> src_list --- src/backend/solvedeps.py | 52 ++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'src/backend/solvedeps.py') 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")) -- cgit v1.2.3