Use pungi's installroot rather than making our own (#722481)

Apparently messing with the installroot causes some serious problems
with yum, so.. don't do that.
This commit is contained in:
Will Woods 2011-07-19 12:26:13 -04:00
parent 080a32b273
commit 8f9f9944fe

View File

@ -154,13 +154,8 @@ class Lorax(BaseLoraxClass):
if not isinstance(ybo, yum.YumBase):
logger.critical("no yum base object")
sys.exit(1)
# create an install root
self.inroot = joinpaths(ybo.conf.installroot, "installroot")
if not os.path.isdir(self.inroot):
os.makedirs(self.inroot)
self.inroot = ybo.conf.installroot
logger.debug("using install root: {0}".format(self.inroot))
ybo.conf.installroot = self.inroot
logger.info("setting up build architecture")
self.arch = ArchData(get_buildarch(ybo))