From ccccf8692eca0ef709fb8fabc36d65e53a07c23e Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 24 Mar 2012 15:37:02 +0000 Subject: (sudo) kill unused arg --- lib/Iurt/Urpmi.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Iurt/Urpmi.pm') diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm index 5ef407e..0556ce0 100644 --- a/lib/Iurt/Urpmi.pm +++ b/lib/Iurt/Urpmi.pm @@ -612,7 +612,7 @@ sub recreate_srpm { perform_command([ sub { my ($s, $d) = @_; - sudo($run, $config, '--cp', $s, $d) } , [ "$dir/$srpm", "$chroot_tmp/home/$luser/rpm/SRPMS/" ] ], + sudo($config, '--cp', $s, $d) } , [ "$dir/$srpm", "$chroot_tmp/home/$luser/rpm/SRPMS/" ] ], $run, $config, $cache, type => 'perl', mail => $config->{admin}, @@ -699,9 +699,9 @@ sub recreate_srpm { my $newfile = "$chroot_tmp/home/$luser/rpm/SRPMS/$prefix$new_srpm"; if (-f $file && $newfile ne $file) { if (-f $newfile) { - sudo($run, $config, '--rm', $newfile) or die "$program_name: could not delete $newfile ($!)"; + sudo($config, '--rm', $newfile) or die "$program_name: could not delete $newfile ($!)"; } - sudo($run, $config, '--ln', $file, $newfile) or die "$program_name: linking $file to $newfile failed ($!)"; + sudo($config, '--ln', $file, $newfile) or die "$program_name: linking $file to $newfile failed ($!)"; unlink $file; unlink $oldsrpm if $oldsrpm ne $newfile; } -- cgit v1.2.1