diff options
-rwxr-xr-x | iurt | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -803,10 +803,7 @@ retry: debug_mail => $run{debug}, log => $log_dir); # or next; As this failed quite often, do not stop plog('NOTIFY', "Building $srpm"); - my $target_arch = $run{my_arch}; - if (check_noarch("$path_srpm/$srpm")) { - $target_arch = 'noarch'; - } + my $target_arch = check_noarch("$path_srpm/$srpm") ? 'noarch' : $run{my_arch}; my $command = "rpmbuild --target $target_arch --rebuild $run{with_flags} /home/$luser/rpmbuild/SRPMS/$srpm"; if ($run{stop}) { $urpmi->install_packages('chroot', $chroot_tmp, $local_spool, 'configure', "[ADMIN] installation of urpmi and sudo failed in the chroot $run{my_arch}", { check => 1, maintainer => $config->{admin} }, 'urpmi', 'sudo'); |