summaryrefslogtreecommitdiffstats
path: root/urpme
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-12-11 11:27:17 +0000
committerFrancois Pons <fpons@mandriva.com>2002-12-11 11:27:17 +0000
commit170345ed730ff801de7a3230a3727fcb70383ffa (patch)
treea3048f5bfeae9feecae80073440ac108ffda78c7 /urpme
parent933d4974697b7561b1ea880c4b7d9b75d92087bd (diff)
downloadurpmi-170345ed730ff801de7a3230a3727fcb70383ffa.tar
urpmi-170345ed730ff801de7a3230a3727fcb70383ffa.tar.gz
urpmi-170345ed730ff801de7a3230a3727fcb70383ffa.tar.bz2
urpmi-170345ed730ff801de7a3230a3727fcb70383ffa.tar.xz
urpmi-170345ed730ff801de7a3230a3727fcb70383ffa.zip
4.1-12mdk
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;