Log versions of all installed packages
JIRA: RHELCMP-9493
Signed-off-by: Haibo Lin <hlin@redhat.com>
(cherry picked from commit 8c06b7a3f1
)
This commit is contained in:
parent
2ff8132eaf
commit
4637fd6697
@ -382,6 +382,14 @@ def run_compose(
|
|||||||
compose.log_info("Current timezone offset: %s" % pungi.util.get_tz_offset())
|
compose.log_info("Current timezone offset: %s" % pungi.util.get_tz_offset())
|
||||||
compose.log_info("COMPOSE_ID=%s" % compose.compose_id)
|
compose.log_info("COMPOSE_ID=%s" % compose.compose_id)
|
||||||
|
|
||||||
|
installed_pkgs_log = compose.paths.log.log_file("global", "installed-pkgs")
|
||||||
|
compose.log_info("Logging installed packages to %s" % installed_pkgs_log)
|
||||||
|
try:
|
||||||
|
with open(installed_pkgs_log, "w") as f:
|
||||||
|
subprocess.Popen(["rpm", "-qa"], stdout=f)
|
||||||
|
except Exception as e:
|
||||||
|
compose.log_warning("Failed to log installed packages: %s" % str(e))
|
||||||
|
|
||||||
compose.read_variants()
|
compose.read_variants()
|
||||||
|
|
||||||
# dump the config file
|
# dump the config file
|
||||||
|
Loading…
Reference in New Issue
Block a user