summaryrefslogtreecommitdiff
path: root/src/backend/install.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/install.py')
-rw-r--r--src/backend/install.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/install.py b/src/backend/install.py
index 17fa98d..98e97bb 100644
--- a/src/backend/install.py
+++ b/src/backend/install.py
@@ -19,7 +19,7 @@ def start(pkgname):
if sisyphus.check.root():
sisyphus.update.start()
- binhostURL = sisyphus.binhost.getURL()
+ isBinhost = sisyphus.binhost.start()
areBinaries,areSources,needsConfig = sisyphus.solvedeps.package(pkgname)
if needsConfig == 0:
@@ -30,7 +30,7 @@ def start(pkgname):
if input("Would you like to proceed?" + " " + "[y/N]" + " ").lower().strip()[:1] == "y":
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)
+ wget.download(isBinhost + binary)
print("\n")
subprocess.call(['qtbz2', '-x'] + binary.rstrip().split("/")[1].split())
@@ -70,14 +70,14 @@ def start(pkgname):
sys.exit("\nYou need root permissions to do this, exiting!\n")
def startqt(pkgname):
- binhostURL = sisyphus.binhost.getURL()
+ isBinhost = sisyphus.binhost.start()
areBinaries,areSources,needsConfig = sisyphus.solvedeps.package.__wrapped__(pkgname) #undecorate
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], start=1):
print(">>> Downloading binary ({}".format(index) + " " + "of" + " " + str(len(areBinaries)) + ")" + " " + binary)
- wget.download(binhostURL + binary)
+ wget.download(isBinhost + binary)
print("\n")
subprocess.call(['qtbz2', '-x'] + binary.rstrip().split("/")[1].split())