createrepo: use separate logs for different pkg_type

Instead of overwriting the same log file, make sure we keep all the logs
for debuginfo, source and binary packages.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2016-06-29 07:46:33 +02:00
parent 11bbbae2ed
commit a1b86b93ea
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ def create_variant_repo(compose, arch, variant, pkg_type):
groupfile=comps_path, update_md_path=repo_dir_arch,
checksum=createrepo_checksum, deltas=createrepo_deltas,
oldpackagedirs=old_packages_dir)
log_file = compose.paths.log.log_file(arch, "createrepo-%s" % variant)
log_file = compose.paths.log.log_file(arch, "createrepo-%s.%s" % (variant, pkg_type))
run(cmd, logfile=log_file, show_cmd=True)
# call modifyrepo to inject productid