pkg-update: --target needs to be passed as last option to rpmbuild

This commit is contained in:
Silvan Calarco 2014-09-06 01:06:02 +02:00
parent ec9f775c87
commit e5052816bb

View File

@ -2092,7 +2092,7 @@ ${proxy:+--proxy $proxy} ${proxy_user:+--proxy-user $proxy_user} \
# check if we are cross-compiling # check if we are cross-compiling
[ "$BUILD_ARCH" != "$target_cpu" ] && [ "$BUILD_ARCH" != "$target_cpu" ] &&
rpmbuild_opts="--target $target_cpu $rpmbuild_opts" rpmbuild_opts="$rpmbuild_opts --target $target_cpu"
[ "$cleanup" = "1" ] && rpmbuild_opts="$rpmbuild_opts --clean" [ "$cleanup" = "1" ] && rpmbuild_opts="$rpmbuild_opts --clean"