summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-11-10 01:54:44 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-11-10 01:54:44 +0000
commit46570ad35f99651f8311a723d65bad30efbe96e3 (patch)
tree0e5887b720e1d48a5ed5a2fb2132d65777dfca65 /src
parent1db206f02217f42d7dab8b8eab29558fc7074fd9 (diff)
split input question
Diffstat (limited to 'src')
-rw-r--r--src/backend/libsisyphus.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/libsisyphus.py b/src/backend/libsisyphus.py
index 51a2724..14f156a 100644
--- a/src/backend/libsisyphus.py
+++ b/src/backend/libsisyphus.py
@@ -205,7 +205,8 @@ def startInstall(pkgList):
if not len(pkgDeps) == 0:
os.chdir(portageCache)
- 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":
+ print("\n" + "These are the packages that would be merged, in order:" + "\n\n" + str(pkgDeps) + "\n\n" + "Total:" + " " + str(len(pkgDeps)) + " " + "package(s)" + "\n")
+ if input("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)
@@ -246,7 +247,8 @@ def startUpgrade():
if not len(worldDeps) == 0:
os.chdir(portageCache)
- 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":
+ print("\n" + "These are the packages that would be merged, in order:" + "\n\n" + str(worldDeps) + "\n\n" + "Total:" + " " + str(len(worldDeps)) + " " + "package(s)" + "\n")
+ if input("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)