diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-27 02:46:36 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-27 02:46:36 +0100 |
commit | 4b1f4edf874da9620d2960c7b1a5c36da330ec7a (patch) | |
tree | 7bd69d11100859c7882df458fabba8bf1e1099e3 /src/backend/upgradePkg.py | |
parent | 6b567b80c45c1f03c71e59cb4eb370fa331e038e (diff) |
bugfix : https://bugs.redcorelinux.org/show_bug.cgi?id=131
Diffstat (limited to 'src/backend/upgradePkg.py')
-rw-r--r-- | src/backend/upgradePkg.py | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/backend/upgradePkg.py b/src/backend/upgradePkg.py index 05d3674..a62408d 100644 --- a/src/backend/upgradePkg.py +++ b/src/backend/upgradePkg.py @@ -42,12 +42,7 @@ def cliExec(): if os.path.exists(binary.rstrip().split("/")[1]): os.remove(binary.rstrip().split("/")[1]) - portageExec = subprocess.Popen(['emerge', '--update', '--deep', '--newuse', '--usepkg', '--usepkgonly', '--rebuilt-binaries', '--backtrack=100', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n', '@world'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) - - for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): - if not "These are the packages that would be merged, in order:" in portageOutput.rstrip(): - if not "Calculating dependencies" in portageOutput.rstrip(): - print(portageOutput.rstrip()) + portageExec = subprocess.Popen(['emerge', '--quiet', '--verbose', '--update', '--deep', '--newuse', '--usepkg', '--usepkgonly', '--rebuilt-binaries', '--backtrack=100', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n', '@world'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) portageExec.wait() sisyphus.syncDatabase.localTable() @@ -87,14 +82,12 @@ def guiExec(): if os.path.exists(binary.rstrip().split("/")[1]): os.remove(binary.rstrip().split("/")[1]) - portageExec = subprocess.Popen(['emerge', '--update', '--deep', '--newuse', '--usepkg', '--usepkgonly', '--rebuilt-binaries', '--backtrack=100', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n', '@world'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) + portageExec = subprocess.Popen(['emerge', '--quiet', '--verbose', '--update', '--deep', '--newuse', '--usepkg', '--usepkgonly', '--rebuilt-binaries', '--backtrack=100', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n', '@world'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) # kill portage if the program dies or it's terminated by the user atexit.register(sisyphus.killPortage.cliExec, portageExec) for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): - if not "These are the packages that would be merged, in order:" in portageOutput.rstrip(): - if not "Calculating dependencies" in portageOutput.rstrip(): - print(portageOutput.rstrip()) + print(portageOutput.rstrip()) portageExec.wait() sisyphus.syncDatabase.localTable() |