handle buildSRPMFromSCM tasks the same way as noarch buildArch tasks, when the tag archlist is a subset of the current builder arches

This commit is contained in:
Mike Bonnet 2009-01-22 12:50:33 -05:00
parent c8808cfa22
commit f317d39381

View file

@ -424,7 +424,7 @@ def make_task(method,arglist,**opts):
opts['label'] = None
opts['parent'] = None
#XXX - temporary workaround
if method == 'buildArch' and opts['arch'] == 'noarch':
if method in ('buildArch', 'buildSRPMFromSCM') and opts['arch'] == 'noarch':
#not all arches can generate a proper buildroot for all tags
tag = get_tag(arglist[1])
#get all known arches for the system