livemedia-creator: Fix logic for anaconda test (#958036)

This commit is contained in:
Brian C. Lane 2013-05-24 12:20:56 -07:00
parent da39dc9d57
commit 23b2ddeb5c

View File

@ -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)