__init__: fix pkglists with --force
This commit is contained in:
parent
954af31c76
commit
f13a5153e0
@ -195,13 +195,13 @@ class Lorax(BaseLoraxClass):
|
||||
|
||||
buildstamp.write(joinpaths(self.inroot, ".buildstamp"))
|
||||
|
||||
logger.debug("saving pkglists to %s", self.workdir)
|
||||
dname = joinpaths(self.workdir, "pkglists")
|
||||
os.makedirs(dname)
|
||||
for pkgobj in ybo.doPackageLists(pkgnarrow='installed').installed:
|
||||
with open(joinpaths(dname, pkgobj.name), "w") as fobj:
|
||||
for fname in pkgobj.filelist:
|
||||
fobj.write("{0}\n".format(fname))
|
||||
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:
|
||||
for fname in pkgobj.filelist:
|
||||
fobj.write("{0}\n".format(fname))
|
||||
|
||||
logger.info("doing post-install configuration")
|
||||
rb.postinstall() # FIXME: configdir=
|
||||
|
Loading…
Reference in New Issue
Block a user