diff options
author | Preston Cody <codeman@gentoo.org> | 2006-06-17 18:10:25 +0000 |
---|---|---|
committer | Preston Cody <codeman@gentoo.org> | 2006-06-17 18:10:25 +0000 |
commit | 84e376ebb9abbc96f15c9b37d6abc417403e2186 (patch) | |
tree | bfff960fe378800d3d17c6e8013965b56de0510c /src | |
parent | src/GLIUtility.py: (diff) | |
download | gli-84e376ebb9abbc96f15c9b37d6abc417403e2186.tar.gz gli-84e376ebb9abbc96f15c9b37d6abc417403e2186.tar.bz2 gli-84e376ebb9abbc96f15c9b37d6abc417403e2186.zip |
fixes to the mirros and uri browsing code
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/gli/trunk@1462 f8877401-5920-0410-a79b-8e2d7e04ca0d
Diffstat (limited to 'src')
-rw-r--r-- | src/GLIGenDialog.py | 22 | ||||
-rw-r--r-- | src/GLIUtility.py | 7 |
2 files changed, 8 insertions, 21 deletions
diff --git a/src/GLIGenDialog.py b/src/GLIGenDialog.py index 029aa8c..4d22108 100644 --- a/src/GLIGenDialog.py +++ b/src/GLIGenDialog.py @@ -551,25 +551,15 @@ on partitioning and the various filesystem types available in Linux.""") else: mirror = mirrorurls[int(mirror)-1] arch = self._client_profile.get_architecture_template() - subarches = GLIUtility.list_subarch_from_mirror(mirror,arch) - if subarches: - code, subarch = self._d.menu(_(u"Select the sub-architecture that most closely matches your system (this changes the amount of optimization):"), choices=self._dmenu_list_to_choices(subarches)) - if code != self._DLG_OK: - type_it_in = True - else: - subarch = subarches[int(subarch)-1] + tarballs = GLIUtility.list_stage_tarballs_from_mirror(mirror, arch) + code, stage_tarball = self._d.menu(_(u"Select your desired stage tarball:"), choices=self._dmenu_list_to_choices(tarballs), width=77, height=20) + if (code != self._DLG_OK): + type_it_in = True else: - subarch = "" - if not type_it_in: - tarballs = GLIUtility.list_stage_tarballs_from_mirror(mirror, arch, subarch) - code, stage_tarball = self._d.menu(_(u"Select your desired stage tarball:"), choices=self._dmenu_list_to_choices(tarballs)) - if (code != self._DLG_OK): - type_it_in = True - else: - stage_tarball = mirror + "/releases/" + arch + "/current/stages/" + subarch + tarballs[int(stage_tarball)-1] + stage_tarball = mirror + "/releases/" + arch + "/current/stages/" + tarballs[int(stage_tarball)-1] #get portageq envvar value of cflags and look for x86, i686,etc. #URL SYNTAX - #http://gentoo.osuosl.org/releases/ARCHITECTURE/current/stages/SUB-ARCH/ + #http://gentoo.osuosl.org/releases/ARCHITECTURE/current/stages/ else: type_it_in = True if type_it_in: diff --git a/src/GLIUtility.py b/src/GLIUtility.py index 2cc98e5..6b0ffd3 100644 --- a/src/GLIUtility.py +++ b/src/GLIUtility.py @@ -639,11 +639,8 @@ def get_interface_realname(interface): else: return "No Information Found" -def list_stage_tarballs_from_mirror(mirror, arch, subarch): - return spawn("wget -O - " + mirror + "/releases/" + arch + "/current/stages/" + subarch + r"/ 2> /dev/null | grep 'bz2\"' | sed -e 's:^.\+href=\"\(.\+\)\".\+$:\1:i'", return_output=True)[1].strip().split("\n") - -def list_subarch_from_mirror(mirror, arch): - return spawn("wget -O - " + mirror + "/releases/" + arch + r"/current/stages/ 2> /dev/null | grep folder.gif | sed -e 's:^.\+href=\"\(.\+\)\".\+$:\1:i'", return_output=True)[1].strip().split("\n") +def list_stage_tarballs_from_mirror(mirror, arch): + return spawn("wget -O - " + mirror + "/releases/" + arch + "/current/stages/" + r" 2> /dev/null | grep 'bz2\"' | sed -e 's:^.\+href=\"\(.\+\)\".\+$:\1:i' -e 's:.\+/\(.\+\)$:\1:'", return_output=True)[1].strip().split("\n") def list_mirrors(http=True, ftp=True, rsync=True): mirrors = [] |