summaryrefslogtreecommitdiff
path: root/src/backend/libsisyphus.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-11-09 20:36:32 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-11-09 20:36:32 +0000
commit6b03b9c1bbc9ef3e3c31eab7c08871fbd22854de (patch)
tree0fdec490448faf3477a50ed812676de8428567fe /src/backend/libsisyphus.py
parent001a240b21ec60ab1e30352095fb94e06b3ccf58 (diff)
use portage cache as download location for binaries
Diffstat (limited to 'src/backend/libsisyphus.py')
-rw-r--r--src/backend/libsisyphus.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/libsisyphus.py b/src/backend/libsisyphus.py
index c7c951e..5f18bae 100644
--- a/src/backend/libsisyphus.py
+++ b/src/backend/libsisyphus.py
@@ -204,6 +204,7 @@ def startInstall(pkgList):
pkgBins = []
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":
for index, url in enumerate([binhostURL + package + '.tbz2' for package in pkgDeps]):
print(">>> Fetching" + " " + url)
@@ -244,6 +245,7 @@ def startUpgrade():
worldBins = []
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":
for index, url in enumerate([binhostURL + package + '.tbz2' for package in worldDeps]):
print(">>> Fetching" + " " + url)