summaryrefslogtreecommitdiffstats
path: root/iw/task_gui.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-06-16 17:49:23 -0400
committerChris Lumens <clumens@redhat.com>2008-06-18 10:44:56 -0400
commitcb575104ba1e54dd93074a1171e923b2d7ded683 (patch)
tree7b067a4d070e9a0322df591aa3101125d97847e6 /iw/task_gui.py
parent908896ed69eaf7b6c07809446335afcd57a91610 (diff)
downloadanaconda-cb575104ba1e54dd93074a1171e923b2d7ded683.tar.gz
anaconda-cb575104ba1e54dd93074a1171e923b2d7ded683.tar.xz
anaconda-cb575104ba1e54dd93074a1171e923b2d7ded683.zip
Bring up the network before attempting to use a repo that requires networking.
A better fix for this would include an updated repo editor with support for all these various types of repositories. But that's not ready yet, so the error handling here will have to be a little sub-standard.
Diffstat (limited to 'iw/task_gui.py')
-rw-r--r--iw/task_gui.py21
1 files changed, 1 insertions, 20 deletions
diff --git a/iw/task_gui.py b/iw/task_gui.py
index 243415eac..1a73377a3 100644
--- a/iw/task_gui.py
+++ b/iw/task_gui.py
@@ -82,21 +82,7 @@ class RepoEditor:
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.
- if not self.repo.addon and not self.repo.name.startswith("Driver Disk"):
- self.anaconda.setMethodstr(repourl)
-
- # Ideally we should be able to unmount here, but if not
- # it's probably not a big deal.
- try:
- isys.umount(self.backend.ayum.tree)
-
- if self.backend.ayum.isodir:
- isys.umount(self.backend.ayum.isodir)
- except:
- pass
-
+ # FIXME: Don't do anything here for now.
return True
def _proxyToggled(self, *args):
@@ -325,11 +311,6 @@ class TaskWindow(InstallWindow):
wasChecked = store.get_value(i, 0)
repo = store.get_value(i, 2)
- # The base repositories can never be disabled, but they can be edited.
- if wasChecked and not repo.addon:
- button.set_active(True)
- return
-
if not wasChecked:
if not network.hasActiveNetDev():
net = NetworkConfigurator(self.anaconda.id.network)