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/GLIUtility.py | |
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/GLIUtility.py')
-rw-r--r-- | src/GLIUtility.py | 7 |
1 files changed, 2 insertions, 5 deletions
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 = [] |