summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm')
-rw-r--r--urpm/media.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index 6f8980d7..67f4cefa 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -1689,6 +1689,7 @@ sub update_media {
my %updates_result;
foreach my $medium (grep { $_->{modified} } non_ignored_media($urpm)) {
my $rc = _update_medium($urpm, $medium, %options);
+ $rc or return if $options{failures_are_fatal};
$updates_result{$rc || 'error'}++;
}