Enable langpack gathering in DNF gather.
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
43d8d02cb1
commit
aff6ac906c
@ -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
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user