urlfetcher: Don't mandate boot.iso in treeinfo for Generic distro

Hit this if doing --location /path/to/mounted/RHS.iso

https://bugzilla.redhat.com/show_bug.cgi?id=1039456
This commit is contained in:
Cole Robinson 2014-01-11 16:24:13 -05:00
parent d38d019aeb
commit a70077172e

View File

@ -548,10 +548,20 @@ class GenericDistro(Distro):
isoSection = "images-%s" % self.treeinfo.get("general", "arch")
if self.treeinfo.has_section(kernelSection):
self._valid_kernel_path = (self._getTreeinfoMedia("kernel"),
self._getTreeinfoMedia("initrd"))
try:
self._valid_kernel_path = (
self._getTreeinfoMedia("kernel"),
self._getTreeinfoMedia("initrd"))
except (ConfigParser.NoSectionError,
ConfigParser.NoOptionError), e:
logging.debug(e)
if self.treeinfo.has_section(isoSection):
self._valid_iso_path = self.treeinfo.get(isoSection, "boot.iso")
try:
self._valid_iso_path = self.treeinfo.get(isoSection,
"boot.iso")
except ConfigParser.NoOptionError, e:
logging.debug(e)
if self.type == "xen":
kern_list = self._xen_paths