summaryrefslogtreecommitdiffstats
path: root/urpme
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-02 17:27:04 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-02 17:27:04 +0000
commit1180c9c4fc9a29a8c40dc73b608d0f3c0a6ddbe1 (patch)
tree9b77fcb3129041716be3439df71ba39121d8c094 /urpme
parent2c29598785890ce276ae76b974c4eb99773c9797 (diff)
downloadurpmi-1180c9c4fc9a29a8c40dc73b608d0f3c0a6ddbe1.tar
urpmi-1180c9c4fc9a29a8c40dc73b608d0f3c0a6ddbe1.tar.gz
urpmi-1180c9c4fc9a29a8c40dc73b608d0f3c0a6ddbe1.tar.bz2
urpmi-1180c9c4fc9a29a8c40dc73b608d0f3c0a6ddbe1.tar.xz
urpmi-1180c9c4fc9a29a8c40dc73b608d0f3c0a6ddbe1.zip
cleanup
Diffstat (limited to 'urpme')
-rw-r--r--urpme11
1 files changed, 8 insertions, 3 deletions
diff --git a/urpme b/urpme
index 3a536137..b4347638 100644
--- a/urpme
+++ b/urpme
@@ -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);