__init__: fix pkglists with --force

This commit is contained in:
Will Woods 2011-05-26 14:09:23 -04:00
parent 954af31c76
commit f13a5153e0

View File

@ -195,13 +195,13 @@ class Lorax(BaseLoraxClass):
buildstamp.write(joinpaths(self.inroot, ".buildstamp")) buildstamp.write(joinpaths(self.inroot, ".buildstamp"))
logger.debug("saving pkglists to %s", self.workdir)
dname = joinpaths(self.workdir, "pkglists") dname = joinpaths(self.workdir, "pkglists")
os.makedirs(dname) if not os.path.isdir(dname):
for pkgobj in ybo.doPackageLists(pkgnarrow='installed').installed: os.makedirs(dname)
with open(joinpaths(dname, pkgobj.name), "w") as fobj: for pkgobj in ybo.doPackageLists(pkgnarrow='installed').installed:
for fname in pkgobj.filelist: with open(joinpaths(dname, pkgobj.name), "w") as fobj:
fobj.write("{0}\n".format(fname)) for fname in pkgobj.filelist:
fobj.write("{0}\n".format(fname))
logger.info("doing post-install configuration") logger.info("doing post-install configuration")
rb.postinstall() # FIXME: configdir= rb.postinstall() # FIXME: configdir=