diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-07-02 17:27:04 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-07-02 17:27:04 +0000 |
commit | 1180c9c4fc9a29a8c40dc73b608d0f3c0a6ddbe1 (patch) | |
tree | 9b77fcb3129041716be3439df71ba39121d8c094 | |
parent | 2c29598785890ce276ae76b974c4eb99773c9797 (diff) | |
download | urpmi-1180c9c4fc9a29a8c40dc73b608d0f3c0a6ddbe1.tar urpmi-1180c9c4fc9a29a8c40dc73b608d0f3c0a6ddbe1.tar.gz urpmi-1180c9c4fc9a29a8c40dc73b608d0f3c0a6ddbe1.tar.bz2 urpmi-1180c9c4fc9a29a8c40dc73b608d0f3c0a6ddbe1.tar.xz urpmi-1180c9c4fc9a29a8c40dc73b608d0f3c0a6ddbe1.zip |
cleanup
-rw-r--r-- | urpme | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -98,20 +98,25 @@ my @toremove = urpm::select::find_packages_to_remove($urpm, my $urpm = shift @_; #- Warning : the following message is parsed in urpm::parallel_* $urpm->{fatal}(1, (@_ > 1 ? N("unknown packages") : N("unknown package")) . - ': ' . join(', ', @_)); 0 }, + ': ' . join(', ', @_)); + 0; + }, callback_fuzzy => sub { my $urpm = shift @_; my $match = shift @_; my $pkgs = $urpm::msg::no_translation ? join(' ', @_) : join('', map { "\n$_" } sort @_); #- Warning : the following message is parsed in urpm::parallel_* $urpm->{fatal}(1, N("The following packages contain %s: %s", $match, $pkgs)); - 0 }, + 0; + }, callback_base => sub { my $urpm = shift @_; foreach (@_) { #- Warning : the following message is parsed in urpm::parallel_* $urpm->{error}(N("removing package %s will break your system", $_)); - } 0 }, + } + 0; + }, ) or $urpm->{fatal}(0, N("Nothing to remove")); my $list = urpm::select::translate_why_removed($urpm, $state, @toremove); |