summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-23 01:37:05 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-23 01:37:05 +0000
commit1bf29c3c503679fd86ac8a39d3fb5411b8f66066 (patch)
tree83c60c65d99aa4388ff7fede9022577271a1613a /urpm.pm
parent22ff7d6aefd8ad6cd9d72c825030189187a9d4cc (diff)
downloadurpmi-1bf29c3c503679fd86ac8a39d3fb5411b8f66066.tar
urpmi-1bf29c3c503679fd86ac8a39d3fb5411b8f66066.tar.gz
urpmi-1bf29c3c503679fd86ac8a39d3fb5411b8f66066.tar.bz2
urpmi-1bf29c3c503679fd86ac8a39d3fb5411b8f66066.tar.xz
urpmi-1bf29c3c503679fd86ac8a39d3fb5411b8f66066.zip
Debug help
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm8
1 files changed, 8 insertions, 0 deletions
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) = @_;