Allow mounting a Fedora image.

Fixes #127
This commit is contained in:
Teo Mrnjavac 2014-10-27 11:01:14 +01:00
parent e5caac7768
commit ee2ed0921e

View File

@ -221,7 +221,7 @@ def run():
destination = os.path.abspath(root_mount_point + entry["destination"])
if not os.path.isfile(source):
if not os.path.exists(source) or os.path.isdir(source):
return ("Bad source", "source=\"{}\"".format(source))
if not os.path.isdir(destination):
return ("Bad destination",