livemedia-creator: Fix logic for anaconda test (#958036)
This commit is contained in:
parent
da39dc9d57
commit
23b2ddeb5c
@ -862,7 +862,7 @@ if __name__ == '__main__':
|
||||
log.error("virt-install requires python-virtinst to be installed.")
|
||||
sys.exit(1)
|
||||
|
||||
if not is_install and opts.no_virt \
|
||||
if is_install and opts.no_virt \
|
||||
and not os.path.exists("/usr/sbin/anaconda"):
|
||||
log.error("no-virt requires anaconda to be installed.")
|
||||
sys.exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user