From aff6ac906c4e21450dc6af3ec7fc365d48852cf2 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Mon, 13 Jul 2015 06:05:03 -0400 Subject: [PATCH] Enable langpack gathering in DNF gather. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lubomír Sedlář --- bin/pungi-gather | 1 + pungi/dnf_wrapper.py | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/bin/pungi-gather b/bin/pungi-gather index c8fce473..3cd73443 100755 --- a/bin/pungi-gather +++ b/bin/pungi-gather @@ -97,6 +97,7 @@ def main(): dnf_obj.fill_sack(load_system_repo=False, load_available_repos=True) dnf_obj.read_comps() + gather_opts.langpacks = dnf_obj.comps_wrapper.get_langpacks() gather_opts.multilib_blacklist = ksparser.handler.multilib_blacklist gather_opts.multilib_whitelist = ksparser.handler.multilib_whitelist gather_opts.prepopulate = ksparser.handler.prepopulate diff --git a/pungi/dnf_wrapper.py b/pungi/dnf_wrapper.py index 20ff70ae..4ca95a90 100644 --- a/pungi/dnf_wrapper.py +++ b/pungi/dnf_wrapper.py @@ -135,6 +135,12 @@ class CompsWrapper(object): conditional.append(i) return list(packages), conditional + def get_langpacks(self): + result = [] + for name, install in self.comps._i.langpacks.items(): + result.append({"name": name, "install": install}) + return result + class ArchWrapper(object): def __init__(self, arch):