summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-28 10:04:00 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-28 10:04:00 +0000
commitf076742409681509eee3d28369b21f495ed19d42 (patch)
tree7d180ab33ab9c900cf14db9212c4797fa670229b /urpm.pm
parente45ec0d2d69b5f3e438cc2aa7ca3bf715d7df57a (diff)
downloadurpmi-f076742409681509eee3d28369b21f495ed19d42.tar
urpmi-f076742409681509eee3d28369b21f495ed19d42.tar.gz
urpmi-f076742409681509eee3d28369b21f495ed19d42.tar.bz2
urpmi-f076742409681509eee3d28369b21f495ed19d42.tar.xz
urpmi-f076742409681509eee3d28369b21f495ed19d42.zip
- add {debug} level messages
- add some debug message before downloading - always display the retrieved url (using {log})
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index ecb4d016..685f3543 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -13,7 +13,7 @@ use urpm::cfg;
use urpm::md5sum;
use MDV::Distribconf;
-our $VERSION = '4.9.1';
+our $VERSION = '4.9.4';
our @ISA = qw(URPM Exporter);
our @EXPORT_OK = 'file_from_local_url';
@@ -45,7 +45,9 @@ sub new {
fatal => sub { printf STDERR "%s\n", $_[1]; exit($_[0]) },
error => sub { printf STDERR "%s\n", $_[0] },
+ info => sub { printf "%s\n", $_[0] },
log => sub { printf "%s\n", $_[0] },
+ debug => sub {},
ui_msg => sub {
$self->{log}($_[0]);
ref $self->{ui} && ref $self->{ui}{msg} and $self->{ui}{msg}->($_[1]);