summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-02 18:29:08 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-02 18:29:08 +0000
commite1dfe562e71e01062bfa92124c8c3c684a4e6280 (patch)
treedcb460ee9e62f04b93550c1cb9f8c51aa9af1df7
parente6d6502758210991a8fff3159b62f386138f6477 (diff)
downloadurpmi-e1dfe562e71e01062bfa92124c8c3c684a4e6280.tar
urpmi-e1dfe562e71e01062bfa92124c8c3c684a4e6280.tar.gz
urpmi-e1dfe562e71e01062bfa92124c8c3c684a4e6280.tar.bz2
urpmi-e1dfe562e71e01062bfa92124c8c3c684a4e6280.tar.xz
urpmi-e1dfe562e71e01062bfa92124c8c3c684a4e6280.zip
fix debugging urpmf callback
-rwxr-xr-xurpmf5
1 files changed, 2 insertions, 3 deletions
diff --git a/urpmf b/urpmf
index ab681795..30e5a592 100755
--- a/urpmf
+++ b/urpmf
@@ -176,11 +176,10 @@ my $callback = join("\n",
'0;'),
"}");
-our $debug;
-$urpm->{error}("qf:[$qf]\ncallback:\n$callback") if $debug;
+$urpm->{debug}("qf:[$qf]\ncallback:\n$callback") if $urpm->{debug};
$callback = eval $callback;
if ($@) {
- $debug and warn "Internal error: $@\n";
+ warn "Internal error: $@\n";
exit(1);
}