pungi/pungi
Petr Písař 38810b3f13 modules: Correct a typo in loading obsoletes
Pungi 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>
2022-02-04 11:15:31 +01:00
..
compose_metadata Format code base with black 2020-02-05 17:35:47 +08:00
ostree ostree: set umask to be more permissive for ostree operations 2020-04-17 09:20:24 +02:00
phases hybrid: Explicitly pull in debugsource packages 2022-01-12 13:59:09 +00:00
scripts Generate images.json for extra_isos phase 2021-11-15 14:38:53 +08:00
wrappers Do not clone the same repository multiple times, re-use already cloned repository 2022-01-26 15:57:13 +01:00
__init__.py Format code base with black 2020-02-05 17:35:47 +08:00
arch.py Format code base with black 2020-02-05 17:35:47 +08:00
arch_utils.py Format code 2021-03-02 18:31:45 +08:00
checks.py Add module obsoletes feature 2022-01-12 12:51:37 +01:00
common.py Format code base with black 2020-02-05 17:35:47 +08:00
compose.py Add module obsoletes feature 2022-01-12 12:51:37 +01:00
config.py Format code base with black 2020-02-05 17:35:47 +08:00
createiso.py Allow ISO-Level configuration within the config file 2021-10-18 16:32:04 +02:00
dnf_wrapper.py Format code base with black 2020-02-05 17:35:47 +08:00
errors.py Move UnsignedPackagesError to a separate file 2021-02-08 10:16:32 +00:00
gather.py Fix formatting 2021-08-17 14:23:43 +08:00
gather_dnf.py Fix can't link XDEV using repos as pkgset_sources 2021-04-22 14:03:12 +02:00
graph.py Format code 2021-03-02 18:31:45 +08:00
ks.py Format code base with black 2020-02-05 17:35:47 +08:00
linker.py Hardlink or copy scratch builds always 2020-08-07 18:00:19 +08:00
media_split.py Format code base with black 2020-02-05 17:35:47 +08:00
metadata.py Include images info in composeinfo.json 2020-10-14 17:57:30 +08:00
module_util.py modules: Correct a typo in loading obsoletes 2022-02-04 11:15:31 +01:00
multilib_dnf.py Format code base with black 2020-02-05 17:35:47 +08:00
multilib_yum.py Format code base with black 2020-02-05 17:35:47 +08:00
notifier.py notification: Add compose_path into the messages 2020-06-09 06:40:26 +00:00
pathmatch.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
paths.py Add module obsoletes feature 2022-01-12 12:51:37 +01:00
profiler.py Format code base with black 2020-02-05 17:35:47 +08:00
runroot.py Cancel koji tasks when pungi terminated 2021-03-23 14:47:48 +08:00
util.py createiso: Allow reusing old images 2021-11-02 07:08:00 +00:00