diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-28 10:04:00 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-28 10:04:00 +0000 |
commit | f076742409681509eee3d28369b21f495ed19d42 (patch) | |
tree | 7d180ab33ab9c900cf14db9212c4797fa670229b /urpm.pm | |
parent | e45ec0d2d69b5f3e438cc2aa7ca3bf715d7df57a (diff) | |
download | urpmi-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.pm | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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]); |