Pass --target instead of --arch to mock.

--target is now it's own argument that only applies to what is passed to
rpm-build.  setarch call is not affected by --target which is what we want.
This commit is contained in:
Jesse Keating 2008-01-04 17:49:12 -05:00
parent db8486e61d
commit c939b34ff6

View file

@ -458,7 +458,7 @@ class BuildRoot(object):
session.host.setBuildRootState(self.id,'BUILDING')
args = ['--no-clean']
if arch:
args.extend(['--arch', arch])
args.extend(['--target', arch])
args.extend(['--rebuild', srpm])
rv = self.mock(args)