From e7c7897de312c02d4ea6847fa949b00d81e29003 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Feb 11 2016 13:38:03 +0000 Subject: 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 --- diff --git a/hub/kojihub.py b/hub/kojihub.py index c84db08..7e09943 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -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