b81e94e808
Pungi write image config file with name of <format>-<name>.cfg, if there are two or more image configs present for different arches under the same variant and with same format & name, the config file can be overwritten, and result in invalid image conf file. Example: image_build = { '^Server$': [ { 'image-build': { 'format': [('qcow2', 'qcow2'),], 'name': 'fedora-guest-image', 'target': 'guest-fedora-26-image', 'version': '26', 'ksurl': "git://git.example.com/ks.git?fedora#HEAD", 'kickstart': "fedora-26-kvm.ks", 'ksversion': 'f26', 'distro': 'fedora-26', 'disk-size': '10', 'arches': ['x86_64'], 'repo': ["http://example.com/linux/fedora/26/Everything/x86_64/os", ] } }, { 'image-build': { 'format': [('qcow2', 'qcow2'),], 'name': 'fedora-guest-image', 'target': 'guest-fedora-26-image', 'version': '26', 'ksurl': "git://git.example.com/ks.git?fedora#HEAD", 'kickstart': "fedora-26-kvm.ks", 'ksversion': 'f26', 'distro': 'fedora-26', 'disk-size': '10', 'arches': ['ppc64le'], } }, ], } In this case, config file "qcow2_guest-fedora-26-image.cfg" will be created for both x86_64 and ppc64le under the same variant dir, and there is a high chance it will be over-written while Pungi creating the koji task. We can add arch name(s) in config filename to avoid that. Signed-off-by: Qixiang Wan <qwan@redhat.com> |
||
---|---|---|
.. | ||
data | ||
fixtures | ||
__init__.py | ||
helpers.py | ||
test_arch.py | ||
test_buildinstall.py | ||
test_checks.py | ||
test_compose.py | ||
test_compose.sh | ||
test_comps_wrapper.py | ||
test_config_validate_script.py | ||
test_config.py | ||
test_createiso_phase.py | ||
test_createiso_script.py | ||
test_createrepo_wrapper.py | ||
test_createrepophase.py | ||
test_extra_files_phase.py | ||
test_gather_method_deps.py | ||
test_gather_method_nodeps.py | ||
test_gather_phase.py | ||
test_gather.py | ||
test_imagebuildphase.py | ||
test_imagechecksumphase.py | ||
test_initphase.py | ||
test_iso_wrapper.py | ||
test_koji_wrapper.py | ||
test_linker.py | ||
test_liveimagesphase.py | ||
test_livemediaphase.py | ||
test_lorax_wrapper.py | ||
test_media_split.py | ||
test_metadata.py | ||
test_notifier.py | ||
test_osbs_phase.py | ||
test_ostree_installer_phase.py | ||
test_ostree_phase.py | ||
test_ostree_script.py | ||
test_patch_iso.py | ||
test_pathmatch.py | ||
test_phase_base.py | ||
test_pkgset_pkgsets.py | ||
test_pkgset_source_koji.py | ||
test_repoclosure_wrapper.py | ||
test_scm.py | ||
test_test_phase.py | ||
test_unified_isos.py | ||
test_util.py |