summaryrefslogtreecommitdiffstats
path: root/urpme
diff options
context:
space:
mode:
Diffstat (limited to 'urpme')
-rw-r--r--urpme6
1 files changed, 5 insertions, 1 deletions
diff --git a/urpme b/urpme
index a5a58a78..8442e4a7 100644
--- a/urpme
+++ b/urpme
@@ -193,7 +193,11 @@ if (@toremove > @l && !$auto) {
<STDIN> =~ /[$noexpr]/ and exit 0;
}
-$urpm->install(\@toremove, {}, {});
+@l = $urpm->install(\@toremove, {}, {});
+if (@l) {
+ print STDERR _("Removing failed") . ":\n" . join("\n", map { "\t$_" } @l);
+ exit 1;
+}
sub toMb {
my $nb = $_[0] / 1024 / 1024;