summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-08-29 19:35:02 +0000
committerChris Lumens <clumens@redhat.com>2006-08-29 19:35:02 +0000
commit514d30a0798c3ae08c7bfdf1650c9f85e6229212 (patch)
treeae321b949b836e23b892c3b63ff73d4b0381263f /yuminstall.py
parent3c74e31403d7649163d547eb7f29f20e69bca239 (diff)
downloadanaconda-514d30a0798c3ae08c7bfdf1650c9f85e6229212.tar.gz
anaconda-514d30a0798c3ae08c7bfdf1650c9f85e6229212.tar.xz
anaconda-514d30a0798c3ae08c7bfdf1650c9f85e6229212.zip
doRepoSetup now takes a repo object instead of an id, so we can display the
name, but lookup with the id.
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/yuminstall.py b/yuminstall.py
index e75c93a24..ce970bb87 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -373,6 +373,7 @@ class AnacondaYum(YumSorter):
rid = name.replace(" ", "")
repo = AnacondaYumRepo(uri = uri, mirrorlist = mirror,
repoid=rid, root = root)
+ repo.name = name
repo.disable()
self.repos.add(repo)
@@ -664,14 +665,17 @@ class YumBackend(AnacondaBackend):
if thisrepo is None:
txt = _("Retrieving installation information...")
else:
- txt = _("Retrieving installation information for %s...")%(thisrepo)
+ txt = _("Retrieving installation information for %s...")%(thisrepo.name)
waitwin = YumProgress(anaconda.intf, txt, tot)
self.ayum.repos.callback = waitwin
try:
for (task, incr) in longtasks:
waitwin.set_incr(incr)
- task(thisrepo = thisrepo)
+ if thisrepo is None:
+ task(thisrepo = None)
+ else:
+ task(thisrepo = thisrepo.id)
waitwin.next_task()
waitwin.pop()
except RepoError, e: