summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/msg.pm8
-rwxr-xr-xurpmi2
2 files changed, 5 insertions, 5 deletions
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";
}
}
}
diff --git a/urpmi b/urpmi
index 66d312da..dbf02480 100755
--- a/urpmi
+++ b/urpmi
@@ -54,7 +54,7 @@ our $rpm_opt = "vh";
our $use_provides = 1;
our $verbose = 0;
our $usedistrib = 0;
-my $log = '';
+our $log = '';
my $uid;
my @files;