aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--lib/Iurt/Urpmi.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index b8e5764..c3a1977 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- iurt: Improve logging
+- iurt: recreate .src.rpm using --target <arch> to fix installing BRs using %{?_isa} macro on armv7hl
0.9.1
- cancel_build: add an utility to cancel a build in the queue
diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm
index 6a4c172..aa14c57 100644
--- a/lib/Iurt/Urpmi.pm
+++ b/lib/Iurt/Urpmi.pm
@@ -548,7 +548,7 @@ sub recreate_srpm {
# 20060515 This should not be necessairy any more if urpmi *.spec works, but it doesn't
#
- my $ret = perform_command(qq(chroot $chroot_tmp su $luser -c "rpmbuild --nodeps -bs $with_flags /home/$luser/rpmbuild/SPECS/$spec"),
+ my $ret = perform_command(qq(chroot $chroot_tmp su $luser -c "rpmbuild --target $run->{my_arch} --nodeps -bs $with_flags /home/$luser/rpmbuild/SPECS/$spec"),
$run, $config,
use_iurt_root_command => 1,
mail => $config->{admin},