From 668d54454c118beb0db294717ee3a9c23b1b7ab8 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 20 Apr 2004 09:05:15 +0000 Subject: Fix regressions due to modularization --- urpm/msg.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'urpm') diff --git a/urpm/msg.pm b/urpm/msg.pm index 5e367daa..fb5264c7 100644 --- a/urpm/msg.pm +++ b/urpm/msg.pm @@ -23,8 +23,8 @@ sub N { sub log_it { #- if invoked as a simple user, nothing should be logged. - if (our $log) { - open my $fh, ">>$log" or die "can't output to log file: $!\n"; + if ($::log) { + open my $fh, ">>$::log" or die "can't output to log file: $!\n"; print $fh @_; close $fh; } @@ -58,7 +58,7 @@ sub message_input { if ($urpm::args::options{bug}) { print STDOUT $msg; } else { - print SAVEOUT $msg; + print ::SAVEOUT $msg; } if ($default_input) { $urpm::args::options{bug} and log_it($default_input); @@ -89,7 +89,7 @@ sub message { if ($urpm::args::options{bug}) { print STDOUT "$msg\n"; } else { - print SAVEOUT "$msg\n"; + print ::SAVEOUT "$msg\n"; } } } -- cgit v1.2.1