mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-26 10:03:54 +03:00
urlfetcher: Throw error if iso _grabber file doesn't exist
isoinfo won't error here at least for me on Fedora 28, so use hasFile to confirm
This commit is contained in:
parent
46ec093a28
commit
01b665a6c3
@ -328,6 +328,9 @@ class _ISOURLFetcher(_URLFetcher):
|
||||
"""
|
||||
Use isoinfo to grab the file
|
||||
"""
|
||||
if not self._hasFile(url):
|
||||
raise RuntimeError("isoinfo didn't find file=%s" % url)
|
||||
|
||||
cmd = ["isoinfo", "-J", "-i", self.location, "-x", url]
|
||||
|
||||
logging.debug("Running isoinfo: %s", cmd)
|
||||
|
Loading…
x
Reference in New Issue
Block a user