diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-27 02:04:40 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-27 02:04:40 +0100 |
commit | 6b567b80c45c1f03c71e59cb4eb370fa331e038e (patch) | |
tree | 4a7a3e45fd8c49e9a3b1634c51363b3c87243b54 /src/backend/resolveDeps.py | |
parent | c9fada27e2381b7a3d53d93014a1a9921c0f56c4 (diff) |
bugfix : https://bugs.redcorelinux.org/show_bug.cgi?id=129
Diffstat (limited to 'src/backend/resolveDeps.py')
-rw-r--r-- | src/backend/resolveDeps.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/resolveDeps.py b/src/backend/resolveDeps.py index 517c574..41e9103 100644 --- a/src/backend/resolveDeps.py +++ b/src/backend/resolveDeps.py @@ -11,7 +11,7 @@ def package(pkgname): portageExec = 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 = portageExec.communicate() - for portageOutput in stderr.decode('ascii').splitlines(): + for portageOutput in stderr.decode('utf-8').splitlines(): if "The following keyword changes are necessary to proceed:" in portageOutput: needsConfig = int(1) @@ -24,7 +24,7 @@ def package(pkgname): if "The following REQUIRED_USE flag constraints are unsatisfied:" in portageOutput: needsConfig = int(1) - for portageOutput in stdout.decode('ascii').splitlines(): + for portageOutput in stdout.decode('utf-8').splitlines(): if "[binary" in portageOutput: isBinary = portageOutput.split("]")[1].split("[")[0].strip(" ") areBinaries.append(isBinary) @@ -43,7 +43,7 @@ def world(): portageExec = 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 = portageExec.communicate() - for portageOutput in stderr.decode('ascii').splitlines(): + for portageOutput in stderr.decode('utf-8').splitlines(): if "The following keyword changes are necessary to proceed:" in portageOutput: needsConfig = int(1) @@ -56,7 +56,7 @@ def world(): if "The following REQUIRED_USE flag constraints are unsatisfied:" in portageOutput: needsConfig = int(1) - for portageOutput in stdout.decode('ascii').splitlines(): + for portageOutput in stdout.decode('utf-8').splitlines(): if "[binary" in portageOutput: isBinary = portageOutput.split("]")[1].split("[")[0].strip(" ") areBinaries.append(isBinary) |