diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-02-28 13:14:58 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-02-28 13:14:58 +0000 |
commit | ec45fe8090b36abcbc6988ce1b43bdebb30f58c2 (patch) | |
tree | a978bb7381babea197f09cdaf9b07d3f29875bd7 /urpm/msg.pm | |
parent | 0c27e9282588a196073c45f20ac784a82d8b1377 (diff) | |
download | urpmi-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/msg.pm')
-rw-r--r-- | urpm/msg.pm | 2 |
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", @_) } |