summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
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) = @_;