From f942d5d58230985e54ea43f4bb85a4a8cbb88ee0 Mon Sep 17 00:00:00 2001 From: Gustavo De Nardin Date: Wed, 23 Jan 2008 23:40:10 +0000 Subject: - more rpmbuild instead if rpm -b --- iurt2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'iurt2') diff --git a/iurt2 b/iurt2 index 40adf2d..870f28f 100755 --- a/iurt2 +++ b/iurt2 @@ -255,7 +255,7 @@ $run{todo} = []; ($run{shell}) = 1; 1 }, "Setting option to dump to a shell" ], [ "", "stop", 1, "", - "Perform rpm -b (p c i l b a s) instead of rpm -ba and then open a shell in the chroot", + "Perform rpmbuild -b (p c i l b a s) instead of rpmbuild -ba and then open a shell in the chroot", sub { ($run{stop}) = @_; 1; @@ -898,11 +898,11 @@ retry: debug_mail => $run{debug}, log => $log_dir); # or next; As this failed quite often, do not stop plog('NOTIFY', "Building $srpm"); - my $command = "rpm --rebuild $run{with_flags} /home/$luser/rpm/SRPMS/$srpm"; + my $command = "rpmbuild --rebuild $run{with_flags} /home/$luser/rpm/SRPMS/$srpm"; if ($run{stop}) { $urpmi->install_packages('chroot', $chroot_tmp, $local_spool, \%pack_provide, 'configure', "[ADMIN] installation of urpmi and sudo failed in the chroot $run{my_arch}", { check => 1, maintainer => $config->{admin} }, 'urpmi', 'sudo'); add_sudoers(\%run, $chroot_tmp, $luser); - $command = "rpm -b$run{stop} /home/$luser/rpm/SPECS/$spec"; + $command = "rpmbuild -b$run{stop} /home/$luser/rpm/SPECS/$spec"; } my ($srpm_name) = $srpm =~ /(?:.*:)?(.*)-[^-]+-[^-]+\.src\.rpm$/; -- cgit v1.2.1