FIX: added exception when utilities can't get MType of iso

master 3.7.2.5
idziubenko 2 years ago
parent 1a790afba7
commit 49350af92d

@ -1679,6 +1679,8 @@ class IsoDistributive(Distributive):
self._makeDirectory(directory)
tf = typeFile(magic=MAGIC_COMPRESS | MAGIC_SYMLINK | MAGIC_CONTINUE)
ftype = tf.getMType(file)
if ftype is None:
raise DistributiveError(_("Failed to get Mtype of the iso file"))
if "block special" in ftype:
mopts = "-o ro"
else:

Loading…
Cancel
Save