diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-04 01:16:23 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-04 01:16:23 +0000 |
commit | 30f0ed9e0fa8b93b98ce707b4b432c3959dc764c (patch) | |
tree | b0ca95101bff95d182a65d894d0651dfd6f7e1f0 /src/backend/install.py | |
parent | 2e9af066c27ff6ef1b3308a0fab887e8a35ff135 (diff) |
backend : maintain some consistency, shave off some more lines of code
Diffstat (limited to 'src/backend/install.py')
-rw-r--r-- | src/backend/install.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/install.py b/src/backend/install.py index 3f385f0..1938d6d 100644 --- a/src/backend/install.py +++ b/src/backend/install.py @@ -27,7 +27,7 @@ def start(pkgname): os.chdir(sisyphus.getfs.portageCacheDir) print("\n" + "These are the binary packages that would be merged, in order:" + "\n\n" + " ".join(areBinaries) + "\n\n" + "Total:" + " " + str(len(areBinaries)) + " " + "binary package(s)" + "\n") if input("Would you like to proceed?" + " " + "[y/N]" + " ").lower().strip()[:1] == "y": - sisyphus.download.package(pkgname) + sisyphus.download.pkg(pkgname) portageExec = subprocess.Popen(['emerge', '--quiet', '--verbose', '--usepkg', '--usepkgonly', '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(pkgname)) portageExec.wait() sisyphus.syncdb.localTable() @@ -56,7 +56,7 @@ def estart(pkgname): os.chdir(sisyphus.getfs.portageCacheDir) print("\n" + "These are the binary packages that would be merged, in order:" + "\n\n" + " ".join(areBinaries) + "\n\n" + "Total:" + " " + str(len(areBinaries)) + " " + "binary package(s)" + "\n") if input("Would you like to proceed?" + " " + "[y/N]" + " ").lower().strip()[:1] == "y": - sisyphus.download.package(pkgname) + sisyphus.download.pkg(pkgname) portageExec = subprocess.Popen(['emerge', '--quiet', '--verbose', '--usepkg', '--usepkgonly', '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(pkgname)) portageExec.wait() sisyphus.syncdb.localTable() @@ -70,7 +70,7 @@ def estart(pkgname): print("\n" + "These are the binary packages that would be merged, in order:" + "\n\n" + " ".join(areBinaries) + "\n\n" + "Total:" + " " + str(len(areBinaries)) + " " + "binary package(s)" + "\n") print("\n" + "These are the source packages that would be merged, in order:" + "\n\n" + " ".join(areSources) + "\n\n" + "Total:" + " " + str(len(areSources)) + " " + "source package(s)" + "\n") if input("Would you like to proceed?" + " " + "[y/N]" + " ").lower().strip()[:1] == "y": - sisyphus.download.package(pkgname) + sisyphus.download.pkg(pkgname) portageExec = subprocess.Popen(['emerge', '--quiet', '--verbose', '--usepkg', '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + list(pkgname)) portageExec.wait() sisyphus.syncdb.localTable() @@ -98,7 +98,7 @@ def startx(pkgname): os.chdir(sisyphus.getfs.portageCacheDir) print("\n" + "These are the binary packages that will be merged, in order:" + "\n\n" + " ".join(areBinaries) + "\n\n" + "Total:" + " " + str(len(areBinaries)) + " " + "binary package(s)" + "\n\n") - sisyphus.download.package(pkgname) + sisyphus.download.pkg(pkgname) portageExec = subprocess.Popen(['emerge', '--quiet', '--verbose', '--usepkg', '--usepkgonly', '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + pkgname, stdout=subprocess.PIPE, stderr=subprocess.PIPE) # kill portage if the program dies or it's terminated by the user atexit.register(sisyphus.killemerge.start, portageExec) |