Добавлена проверка на неправильное название iso образа

parent 46196daccb
commit 8e219f14ab

@ -759,6 +759,11 @@ class VariableClBuilderImageFilename(Variable):
if self.Get('cl_builder_id'):
if not value:
raise VariableError(_("You must specify image filename"))
if not value.endswith(".iso"):
raise VariableError(_("You must specify image filename with "
"'iso' suffix"))
if path.isdir(value):
raise VariableError(_("The image shouldn't be a directory"))
for line in process("/bin/losetup", "-j", value):
lodev, op, line = line.partition(":")
if lodev:

Loading…
Cancel
Save