From fa7bffb7a260ed66bd96c5b3487696d16d21185e Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Mon, 12 May 2008 18:08:22 +0200 Subject: [PATCH] HACK: create a pseudo build-all group in the comps.xml file to workaround stupid yum behavior --- koji/__init__.py | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/koji/__init__.py b/koji/__init__.py index fe44cc4..14600e5 100644 --- a/koji/__init__.py +++ b/koji/__init__.py @@ -802,7 +802,23 @@ def generate_comps(groups): """ ] - groups = list(groups) + groups = list(groups) + xtra_group = { + 'name' : 'build-all', + 'display_name' : 'build-all', + 'is_default' : True, + 'description' : 'description', + 'langonly' : False, + 'uservisible' : True, + 'biarchonly' : False, + 'grouplist' : [], + 'packagelist' : []} + + for g in groups: + if g['packagelist']: + xtra_group['packagelist'].extend(g['packagelist']) + + groups.append(xtra_group) groups.sort(lambda a,b:cmp(a['name'],b['name'])) for g in groups: group_id = g['name'] @@ -912,7 +928,7 @@ def genMockConfig(name, arch, managed=False, repoid=None, tag_name=None, **opts) 'target_arch' : arch, 'chroothome': '/builddir', # Use the group data rather than a generated rpm - 'chroot_setup_cmd': 'groupinstall build', + 'chroot_setup_cmd': 'groupinstall build-all', # don't encourage network access from the chroot 'use_host_resolv': False, # Don't let a build last more than 24 hours -- 1.5.5.1