diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-09-22 15:16:33 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-09-22 15:16:33 +0100 |
commit | c723ec8926dcdde690c684ce46efbb0333f09004 (patch) | |
tree | 15e86621601843e0146d604882a68a7e503e0c5d /src/backend | |
parent | 00f4cf322e615f5f4f751c9f7882416a3d2c37b9 (diff) |
shamelessly ask the same questions portage itself asks :D
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/libsisyphus.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/libsisyphus.py b/src/backend/libsisyphus.py index a97af79..959e80f 100644 --- a/src/backend/libsisyphus.py +++ b/src/backend/libsisyphus.py @@ -232,7 +232,7 @@ def startInstall(pkgList): pkgBins = [] if not len(pkgDeps) == 0: - if input("The following" + " " + str(len(pkgDeps)) + " " + "package(s) will be merged!" + "\n" + "\n" + str(pkgDeps) + "\n" + "\n" + "Would you like to proceed?" + " " + "[y/N]" + " ").lower().strip()[:1] == "y": + if input("\n" + "These are the packages that would be merged, in order:" + "\n\n" + str(pkgDeps) + "\n\n" + "Total:" + " " + str(len(pkgDeps)) + " " + "package(s)" + "\n\n" "Would you like to proceed?" + " " + "[y/N]" + " ").lower().strip()[:1] == "y": for index, url in enumerate([binhostURL + package + '.tbz2' for package in pkgDeps]): print(">>> Fetching" + " " + url) wget.download(url) @@ -262,7 +262,7 @@ def startInstall(pkgList): portageExec.wait() syncLocalDatabase() else: - sys.exit(1) + sys.exit("\n" + "Nothing to install; quitting." + "\n") def startUpgrade(): syncAll() @@ -272,7 +272,7 @@ def startUpgrade(): worldBins = [] if not len(worldDeps) == 0: - if input("The following" + " " + str(len(worldDeps)) + " " + "package(s) will be merged!" + "\n" + "\n" + str(worldDeps) + "\n" + "\n" + "Would you like to proceed?" + " " + "[y/N]" + " ").lower().strip()[:1] == "y": + if input("\n" + "These are the packages that would be merged, in order:" + "\n\n" + str(worldDeps) + "\n\n" + "Total:" + " " + str(len(worldDeps)) + " " + "package(s)" + "\n\n" "Would you like to proceed?" + " " + "[y/N]" + " ").lower().strip()[:1] == "y": for index, url in enumerate([binhostURL + package + '.tbz2' for package in worldDeps]): print(">>> Fetching" + " " + url) wget.download(url) |