summaryrefslogtreecommitdiff
path: root/src/backend/install.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-30 16:32:39 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-30 16:32:39 +0000
commit5eaef5fdcc4648c6156b0a5f6d8a2907c2a5a303 (patch)
treeb3ff6dcffc9c956419466bf37b66296bd18ba438 /src/backend/install.py
parent479a912ffcbf51247397be7d7c1e4d8646baf4c1 (diff)
don't start from 0, but from 1 insteadv4.2101.1
Diffstat (limited to 'src/backend/install.py')
-rw-r--r--src/backend/install.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/install.py b/src/backend/install.py
index 8aeb6e1..17fa98d 100644
--- a/src/backend/install.py
+++ b/src/backend/install.py
@@ -28,7 +28,7 @@ def start(pkgname):
os.chdir(sisyphus.filesystem.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":
- for index, binary in enumerate([package + '.tbz2' for package in areBinaries]):
+ for index, binary in enumerate([package + '.tbz2' for package in areBinaries], start=1):
print(">>> Downloading binary ({}".format(index) + " " + "of" + " " + str(len(areBinaries)) + ")" + " " + binary)
wget.download(binhostURL + binary)
print("\n")
@@ -75,7 +75,7 @@ def startqt(pkgname):
os.chdir(sisyphus.filesystem.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")
- for index, binary in enumerate([package + '.tbz2' for package in areBinaries]):
+ for index, binary in enumerate([package + '.tbz2' for package in areBinaries], start=1):
print(">>> Downloading binary ({}".format(index) + " " + "of" + " " + str(len(areBinaries)) + ")" + " " + binary)
wget.download(binhostURL + binary)
print("\n")