aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Urpmi.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-24 15:37:02 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-24 15:37:02 +0000
commitccccf8692eca0ef709fb8fabc36d65e53a07c23e (patch)
treeccdf8a8d339a3be23f3eaba840a94db308a2eb76 /lib/Iurt/Urpmi.pm
parentee9645ee5c60ee5bdce25de9c6a85c5e6a5d3baf (diff)
downloadiurt-ccccf8692eca0ef709fb8fabc36d65e53a07c23e.tar
iurt-ccccf8692eca0ef709fb8fabc36d65e53a07c23e.tar.gz
iurt-ccccf8692eca0ef709fb8fabc36d65e53a07c23e.tar.bz2
iurt-ccccf8692eca0ef709fb8fabc36d65e53a07c23e.tar.xz
iurt-ccccf8692eca0ef709fb8fabc36d65e53a07c23e.zip
(sudo) kill unused arg
Diffstat (limited to 'lib/Iurt/Urpmi.pm')
-rw-r--r--lib/Iurt/Urpmi.pm6
1 files changed, 3 insertions, 3 deletions
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;
}