aboutsummaryrefslogtreecommitdiff
path: root/gentoo
diff options
context:
space:
mode:
authorwiktor w brodlo <wiktor@brodlo.net>2011-08-17 00:24:06 +0000
committerwiktor w brodlo <wiktor@brodlo.net>2011-08-17 00:25:56 +0000
commit0312ad3461b42e8f3e673c4c6fee171e55176ad9 (patch)
treec82457161f94ebf5f3f1e51996dd12e03484ac93 /gentoo
parentfix LC_ALL issue (diff)
downloadanaconda-0312ad3461b42e8f3e673c4c6fee171e55176ad9.tar.gz
anaconda-0312ad3461b42e8f3e673c4c6fee171e55176ad9.tar.bz2
anaconda-0312ad3461b42e8f3e673c4c6fee171e55176ad9.zip
Proper stage3 fetching
Diffstat (limited to 'gentoo')
-rw-r--r--gentoo/utils.py23
1 files changed, 21 insertions, 2 deletions
diff --git a/gentoo/utils.py b/gentoo/utils.py
index 808202b..507ac82 100644
--- a/gentoo/utils.py
+++ b/gentoo/utils.py
@@ -757,8 +757,27 @@ class GentooInstall:
"""
This function copies the stage3 into self._root
"""
-
-
+ action = _("Downloading stage3...")
+
+ if os.environ["ANACONDA_PRODUCTARCH"] == "x86":
+ arch = "x86"
+ cpu = "i686"
+ if os.environ["ANACONDA_PRODUCTARCH"] == "amd64":
+ arch = "amd64"
+ cpu = "amd64"
+
+ latest_stage = "http://distfiles.gentoo.org/releases/%s/autobuilds/latest-stage3-%s.txt" % (arch, cpu)
+
+ os.system("wget -nc -O /tmp/latest-stage %s " % latest_stage)
+ f = open("/tmp/latest-stage")
+
+ lines = f.read().split("\n")
+ stage = lines[2]
+
+ stageurl = "http://distfiles.gentoo.org/releases/%s/autobuilds/%s" % (arch, stage)
+
+ os.system("wget -nc -O "+productPath+" %s " % stageurl)
+
action = _("Unpacking stage3")
anaconda._intf.instProgress.terminal.run_command("tar xvjpf "+productPath+" -C "+self._root)