From 1bf29c3c503679fd86ac8a39d3fb5411b8f66066 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Fri, 23 Jul 2004 01:37:05 +0000 Subject: Debug help --- urpm.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'urpm.pm') diff --git a/urpm.pm b/urpm.pm index 6edac54e..759354d2 100644 --- a/urpm.pm +++ b/urpm.pm @@ -17,6 +17,14 @@ use URPM; use URPM::Resolve; use POSIX; +BEGIN { + # this won't work in 5.10 when encoding::warnings will be lexical + if ($ENV{DEBUG_URPMI}) { + require encoding::warnings; + encoding::warnings->import(); + } +} + #- create a new urpm object. sub new { my ($class) = @_; -- cgit v1.2.1