Add packages to a koji package group as mandatory not default

All the packages in groups that koji uses to build srpms/rpms/live images and other outputs are mandatory but are currently specified as default. Yum historically didn't make a major diffentiation between the two and failed build if there was issues, dnf treats this differently and only classifies mandatory as the only option that would fail the install. The packages in the group should be mandatory because we really do want to ensure they're there. This fixes dnf, but should have no impact on the yum use case.

Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
This commit is contained in:
Peter Robinson 2016-02-11 13:38:03 +00:00 committed by Mike McLean
parent 17376ced20
commit d60e8e563f

View file

@ -1671,7 +1671,7 @@ def grp_pkg_add(taginfo,grpinfo,pkg_name,block=False,force=False,**opts):
if not changed and not force:
#no point in adding it again with the same data (unless force is on)
return
opts.setdefault('type','default')
opts.setdefault('type','mandatory')
opts['group_id'] = group['id']
opts['tag_id'] = tag['id']
opts['package'] = pkg_name