summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-28 13:14:58 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-28 13:14:58 +0000
commitec45fe8090b36abcbc6988ce1b43bdebb30f58c2 (patch)
treea978bb7381babea197f09cdaf9b07d3f29875bd7 /urpm
parent0c27e9282588a196073c45f20ac784a82d8b1377 (diff)
downloadurpmi-ec45fe8090b36abcbc6988ce1b43bdebb30f58c2.tar
urpmi-ec45fe8090b36abcbc6988ce1b43bdebb30f58c2.tar.gz
urpmi-ec45fe8090b36abcbc6988ce1b43bdebb30f58c2.tar.bz2
urpmi-ec45fe8090b36abcbc6988ce1b43bdebb30f58c2.tar.xz
urpmi-ec45fe8090b36abcbc6988ce1b43bdebb30f58c2.zip
Avoid an undefined subroutine warning during global destruction if Sys::Syslog
is not present.
Diffstat (limited to 'urpm')
-rw-r--r--urpm/msg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/msg.pm b/urpm/msg.pm
index bf4b3e54..c99fabf3 100644
--- a/urpm/msg.pm
+++ b/urpm/msg.pm
@@ -51,7 +51,7 @@ eval {
Sys::Syslog->import();
(my $tool = $0) =~ s!.*/!!;
openlog($tool, '', 'user');
- END { closelog() }
+ END { defined &closelog and closelog() }
};
sub sys_log { defined &syslog and syslog("info", @_) }