From 2d8eaaff124edd29fdc409147f4191b0a8045317 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 26 Mar 2012 18:21:13 +0000 Subject: (install_packages) reduce a variable scope --- lib/Iurt/Urpmi.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Iurt/Urpmi.pm') diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm index 7528623..99eded4 100644 --- a/lib/Iurt/Urpmi.pm +++ b/lib/Iurt/Urpmi.pm @@ -419,7 +419,6 @@ sub are_installed { sub install_packages { my ($self, $title, $chroot_tmp, $local_spool, $pack_provide, $log, $error, $opt, @packages) = @_; - my $maintainer = $opt->{maintainer}; my $run = $self->{run}; my $config = $self->{config}; my $cache = $run->{cache}; @@ -516,6 +515,7 @@ sub install_packages { plog('FAIL', "missing dep: $missing_deps ($other_maint) missing_package $missing_package ($first_maint)"); $run->{status}{$title} = 'missing_dep'; + my $maintainer = $opt->{maintainer}; $opt->{mail} = $maintainer || $config->{admin}; # remember what is needed, and do not try to -- cgit v1.2.1