summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-06-19 15:14:52 -0400
committerChris Lumens <clumens@redhat.com>2008-06-19 15:14:52 -0400
commit4eb69c1c9bc805f79be8eb0e41b974d635dd4747 (patch)
tree0855e16ac05c7043718438c2cbc99461b7e847c6 /yuminstall.py
parent1c097e74d964f901d5dec113b0258a996135b43a (diff)
downloadanaconda-4eb69c1c9bc805f79be8eb0e41b974d635dd4747.tar.gz
anaconda-4eb69c1c9bc805f79be8eb0e41b974d635dd4747.tar.xz
anaconda-4eb69c1c9bc805f79be8eb0e41b974d635dd4747.zip
Move enableNetwork into the interface. Bring network up for scp.
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py19
1 files changed, 2 insertions, 17 deletions
diff --git a/yuminstall.py b/yuminstall.py
index f46c55e8e..955400419 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -130,15 +130,6 @@ def ui_comps_sort(one, two):
return -1
return 0
-def enableNetwork(anaconda):
- from netconfig_dialog import NetworkConfigurator
- import gtk
- net = NetworkConfigurator(anaconda.id.network)
- ret = net.run()
- net.destroy()
-
- return ret != gtk.RESPONSE_CANCEL
-
class AnacondaCallback:
def __init__(self, ayum, anaconda, instLog, modeText):
@@ -396,7 +387,7 @@ class AnacondaYum(YumSorter):
self._baseRepoURL = m
elif m.startswith("nfs:"):
if not network.hasActiveNetDev():
- if not enableNetwork(self.anaconda):
+ if not self.anaconda.intf.enableNetwork(self.anaconda):
self._baseRepoURL = None
else:
isys.mount(m[4:], self.tree, "nfs")
@@ -1131,13 +1122,7 @@ reposdir=/etc/yum.repos.d,/tmp/updates/yum.repos.d,/tmp/product/yum.repos.d
except RepoError, e:
waitwin.pop()
if repo.needsNetwork() and not network.hasActiveNetDev():
- from netconfig_dialog import NetworkConfigurator
- import gtk
- net = NetworkConfigurator(anaconda.id.network)
- ret = net.run()
- net.destroy()
-
- if ret != gtk.RESPONSE_CANCEL:
+ if anaconda.intf.enableNetwork(anaconda):
repo.mirrorlistparsed = False
continue