Update from upstream #11
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "a8_updated"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This file can contain all Pungi specific exceptions. It should also fix an issue encountered on Python 2.7: AttributeError: 'module' object has no attribute 'pkgsets' Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>OSBS will reject no scratch builds with arch_override. When the option is not specified in Pungi, it would do `"".split(" ")` to get list of arches, which returns a list with empty string instead of an empty list. With this fixed, it might be possible to have multiple images match the spec (unless arch is used in the filter). To fix that, we can replace arch with $basearch variable. JIRA: RHELCMP-3824 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>repovalue for osbs phase. 195bfbefa4cts_urlis configured, use CTS/repoAPI for buildContainer yum_repourls. 0530cf2712Pungi failed: TypeError: argument obsoletes: Expected Modulemd.Obsoletes, but got list Frame collect_module_obsoletes in /usr/lib/python3.10/site-packages/pungi/module_util.py at line 91 <CODE> 84 mod_index = mod_index or Modulemd.ModuleIndex() 85 86 for module_name, obsoletes in iter_module_defaults_or_obsoletes( 87 obsoletes_dir, obsoletes=True 88 ): 89 for obsolete in obsoletes: 90 if not modules_to_load or module_name in modules_to_load: --> 91 mod_index.add_obsoletes(obsoletes) 92 93 return mod_index </CODE> <LOCALS> mod_index = <Modulemd.ModuleIndex object at 0x7f01a40fae40 (ModulemdModuleIndex at 0x7f0484338f90)> module_name = 'perl' modules_to_load = {'perl-Date-Manip', 'subversion', 'sway', 'nginx', 'perl-YAML', 'ghc', 'perl-App-cpanminus', 'perl-XML-Parser', 'varnish', 'nodejs', 'cri-o', 'perl-DBD-Pg', 'perl-DBI', 'perl', 'swig', 'perl-FCGI', 'p obsolete = <Modulemd.Obsoletes object at 0x7f00c0fe4a00 (ModulemdObsoletes at 0x7f024c0268b0)> obsoletes = [<Modulemd.Obsoletes object at 0x7f00c0fe4a00 (ModulemdObsoletes at 0x7f024c0268b0)>] obsoletes_dir = '/mnt/koji/compose/rawhide/Fedora-Rawhide-20220203.n.1/work/global/module_obsoletes' </LOCALS> This patches fixes the typo in add_obsoletes() argument. https://pagure.io/releng/failed-composes/issue/3058 Signed-off-by: Petr Písař <ppisar@redhat.com>Prior to this change, if a container image used Cachito with OSBS, then OSBS would store additional "remote-sources" files in the Koji archives for the build. Pungi cannot parse the metadata for these archive entries, so it would crash in add_metadata(): File "pungi/phases/osbs.py", line 81, in process self.worker(compose, variant, config) File "pungi/phases/osbs.py", line 141, in worker nvr, archive_ids = add_metadata(variant, task_id, compose, scratch) File "pungi/phases/osbs.py", line 447, in add_metadata arch = archive["extra"]["image"]["arch"] KeyError: 'image' Tell Koji to only return container image archives, and ignore these remote-source archives. Signed-off-by: Ken Dreyer <kdreyer@redhat.com>Pull request closed