another pkglists fixup

This commit is contained in:
Will Woods 2011-05-26 18:53:51 -04:00
parent 33107bdab1
commit 9f47eae26b

View File

@ -198,10 +198,10 @@ class Lorax(BaseLoraxClass):
dname = joinpaths(self.workdir, "pkglists") dname = joinpaths(self.workdir, "pkglists")
if not os.path.isdir(dname): if not os.path.isdir(dname):
os.makedirs(dname) os.makedirs(dname)
for pkgobj in ybo.doPackageLists(pkgnarrow='installed').installed: for pkgobj in ybo.doPackageLists(pkgnarrow='installed').installed:
with open(joinpaths(dname, pkgobj.name), "w") as fobj: with open(joinpaths(dname, pkgobj.name), "w") as fobj:
for fname in pkgobj.filelist: for fname in pkgobj.filelist:
fobj.write("{0}\n".format(fname)) 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=