diff --git a/bin/pungi-gather b/bin/pungi-gather index 9bbda922..a497edfd 100755 --- a/bin/pungi-gather +++ b/bin/pungi-gather @@ -137,7 +137,7 @@ def main(persistdir, cachedir): def _get_flags(gather_obj, pkg): flags = gather_obj.result_package_flags.get(pkg, []) - flags = "(%s)" % ",".join(sorted(f.name for f in flags)) + flags = "(%s)" % ",".join(sorted(f.name.replace('_', '-') for f in flags)) return flags diff --git a/pungi/gather_dnf.py b/pungi/gather_dnf.py index 44f5efda..01983f4c 100644 --- a/pungi/gather_dnf.py +++ b/pungi/gather_dnf.py @@ -101,6 +101,7 @@ class PkgFlag(Enum): fulltree = 64 multilib = 128 langpack = 256 + fulltree_exclude = 512 class GatherBase(object): @@ -277,6 +278,8 @@ class Gather(GatherBase): # lookaside if i.repoid in self.opts.lookaside_repos: self._set_flag(i, PkgFlag.lookaside) + if i.sourcerpm.rsplit('-', 2)[0] in self.opts.fulltree_excludes: + self._set_flag(i, PkgFlag.fulltree_exclude) self.result_binary_packages.update(added)