diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-02-21 18:32:25 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-02-21 18:32:25 +0000 |
commit | 6c80194744a98d6919b1fcbef0fd8f3199fc5600 (patch) | |
tree | 7ced7fd6634f54a0d009a948bd792f27e1b64232 | |
parent | e0f2365a3df8abf5df620bc173d91f159c784ab7 (diff) | |
download | urpmi-6c80194744a98d6919b1fcbef0fd8f3199fc5600.tar urpmi-6c80194744a98d6919b1fcbef0fd8f3199fc5600.tar.gz urpmi-6c80194744a98d6919b1fcbef0fd8f3199fc5600.tar.bz2 urpmi-6c80194744a98d6919b1fcbef0fd8f3199fc5600.tar.xz urpmi-6c80194744a98d6919b1fcbef0fd8f3199fc5600.zip |
It seems that the msg callback is never defined in urpmi-parallel. Protect
against run-time errors; will have to work out how progress reporting is
supposed to work.
-rw-r--r-- | urpm.pm | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -68,7 +68,10 @@ sub new { fatal => sub { printf STDERR "%s\n", $_[1]; exit($_[0]) }, error => sub { printf STDERR "%s\n", $_[0] }, log => sub { printf STDERR "%s\n", $_[0] }, - ui_msg => sub { $self->{log}($_[0]); $self->{ui} and $self->{ui}{msg}->($_[1]) }, + ui_msg => sub { + $self->{log}($_[0]); + ref $self->{ui} && ref $self->{ui}{msg} and $self->{ui}{msg}->($_[1])s; + }, }, $class; $self->set_nofatal(1); $self; |