Save list of installed packages
This commit is contained in:
parent
be8c2859af
commit
d09c2980ec
@ -232,6 +232,11 @@ class Lorax(BaseLoraxClass):
|
|||||||
self.installtree.yum.install(package)
|
self.installtree.yum.install(package)
|
||||||
self.installtree.yum.process_transaction()
|
self.installtree.yum.process_transaction()
|
||||||
|
|
||||||
|
# XXX save list of installed packages
|
||||||
|
with open(joinpaths(self.workdir, "packages"), "w") as fobj:
|
||||||
|
for pkgname in self.installtree.yum.installed_packages:
|
||||||
|
fobj.write("{0}\n".format(pkgname))
|
||||||
|
|
||||||
# write buildstamp
|
# write buildstamp
|
||||||
self.write_buildstamp(path=self.installtree.root)
|
self.write_buildstamp(path=self.installtree.root)
|
||||||
|
|
||||||
@ -251,8 +256,6 @@ class Lorax(BaseLoraxClass):
|
|||||||
logger.info("moving stubs")
|
logger.info("moving stubs")
|
||||||
self.installtree.move_stubs()
|
self.installtree.move_stubs()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# get the list of required modules
|
# get the list of required modules
|
||||||
logger.info("getting list of required modules")
|
logger.info("getting list of required modules")
|
||||||
modules = [f[1:] for f in template if f[0] == "module"]
|
modules = [f[1:] for f in template if f[0] == "module"]
|
||||||
|
Loading…
Reference in New Issue
Block a user