__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,8 +195,8 @@ class Lorax(BaseLoraxClass):
buildstamp.write(joinpaths(self.inroot, ".buildstamp"))
logger.debug("saving pkglists to %s", self.workdir)
dname = joinpaths(self.workdir, "pkglists")
if not os.path.isdir(dname):
os.makedirs(dname)
for pkgobj in ybo.doPackageLists(pkgnarrow='installed').installed:
with open(joinpaths(dname, pkgobj.name), "w") as fobj: