run() fix: inroot could exist if we're running with --force

This commit is contained in:
Will Woods 2011-05-26 13:06:45 -04:00
parent 511deeaea9
commit bbf3d23513

View File

@ -166,7 +166,8 @@ class Lorax(BaseLoraxClass):
# create an install root
self.inroot = joinpaths(ybo.conf.installroot, "installroot")
os.makedirs(self.inroot)
if not os.path.isdir(self.inroot):
os.makedirs(self.inroot)
logger.debug("using install root: {0}".format(self.inroot))
ybo.conf.installroot = self.inroot