summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-02-27 17:24:12 -0500
committerChris Lumens <clumens@redhat.com>2008-02-28 14:27:26 -0500
commiteac6293ca4d5c8198aa2301565f694ea792cdac3 (patch)
tree5251766cc02ab4054dbd1f95e6942140982eca1f /iw
parent3fd93c9585c708acb1c39d0887bffdd774e288ed (diff)
downloadanaconda-eac6293ca4d5c8198aa2301565f694ea792cdac3.tar.gz
anaconda-eac6293ca4d5c8198aa2301565f694ea792cdac3.tar.xz
anaconda-eac6293ca4d5c8198aa2301565f694ea792cdac3.zip
Allow recovery from some missing repodata conditions.
If we try to read the repodata during doRepoSetup and find that it's not there, allow editing the repository right away and attempt to reconfigure. These changes will be reflected in task selection later on.
Diffstat (limited to 'iw')
-rw-r--r--iw/task_gui.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/iw/task_gui.py b/iw/task_gui.py
index 7779183b9..753679ac8 100644
--- a/iw/task_gui.py
+++ b/iw/task_gui.py
@@ -46,7 +46,7 @@ def setupRepo(anaconda, repo):
"Please ensure that your repository has been "
"correctly generated.\n\n%s" %(e,)),
type="ok", custom_icon="error")
- anaconda.backend.ayum.repos.delete(self.repo.id)
+ anaconda.backend.ayum.repos.delete(repo.id)
return False
if not repo.groups_added:
@@ -77,6 +77,8 @@ class RepoEditor:
self.usernameEntry = self.dxml.get_widget("usernameEntry")
self.passwordEntry = self.dxml.get_widget("passwordEntry")
+ self.dialog.set_title(_("Edit Repository"))
+
def _enableRepo(self, repourl):
# Only do this for the real base repo, as that's what will get
# written out to anaconda-ks.cfg as the method.
@@ -137,7 +139,7 @@ class RepoEditor:
lbl = self.dxml.get_widget("descLabel")
txt = lbl.get_text()
- lbl.set_text(txt %(productName,))
+ lbl.set_text(txt)
self.dialog.show_all()