summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorRadek Vykydal <rvykydal@redhat.com>2009-10-07 10:38:03 +0200
committerRadek Vykydal <rvykydal@redhat.com>2009-10-07 10:41:27 +0200
commit683f6df10c4e3ca46d4f8c0192aca6a3189154f4 (patch)
tree038e830ab490afa50b0518df29689c3fb501b764 /iw
parent0baf84559a472a34cfc65cbb03276a7b4ed4fd69 (diff)
downloadanaconda-683f6df10c4e3ca46d4f8c0192aca6a3189154f4.tar.gz
anaconda-683f6df10c4e3ca46d4f8c0192aca6a3189154f4.tar.xz
anaconda-683f6df10c4e3ca46d4f8c0192aca6a3189154f4.zip
Set related ayum attributes if media is found when editing methodstr (#515441).
Duplicates code in configBaseURL, I'd like to do all the media scanning in configBaseURL and guard only methodstr syntax in methodstr editing dialog - perhaps next step if it proves doable.
Diffstat (limited to 'iw')
-rw-r--r--iw/task_gui.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/iw/task_gui.py b/iw/task_gui.py
index 85e659a29..1df8b0c4f 100644
--- a/iw/task_gui.py
+++ b/iw/task_gui.py
@@ -424,6 +424,10 @@ class RepoMethodstrEditor(RepoEditor):
"and try again."))
return False
+ self.anaconda.backend.ayum.mediagrabber = self.anaconda.backend.ayum.mediaHandler
+ self.anaconda.backend.ayum.anaconda.mediaDevice = cdr
+ self.anaconda.backend.ayum.currentMedia = 1
+ log.info("found installation media on %s" % cdr)
return "cdrom://%s:%s" % (cdr, self.anaconda.backend.ayum.tree)
def _applyNfs(self):