summaryrefslogtreecommitdiffstats
path: root/urpm/media.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-05 16:30:45 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-05 16:30:45 +0000
commita1e68ff6761fe316671e760785ce27e376053991 (patch)
treec4213d176fab48220e7a1964fd876f42549da4dc /urpm/media.pm
parent1a26f8e97d214ae49dda536b8b27a3175e174fae (diff)
downloadurpmi-a1e68ff6761fe316671e760785ce27e376053991.tar
urpmi-a1e68ff6761fe316671e760785ce27e376053991.tar.gz
urpmi-a1e68ff6761fe316671e760785ce27e376053991.tar.bz2
urpmi-a1e68ff6761fe316671e760785ce27e376053991.tar.xz
urpmi-a1e68ff6761fe316671e760785ce27e376053991.zip
- urpmi.addmedia:
o exit code 1 when a medium can't be added and simplifies a mess in urpmi.addmedia: this mess is not needed anymore since update_media() will exit on error
Diffstat (limited to 'urpm/media.pm')
-rw-r--r--urpm/media.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index c262900d..363fe860 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -1808,8 +1808,11 @@ sub update_media {
$rc or _update_medium_first_pass_failed($urpm, $medium);
}
+ $urpm->{debug} and $urpm->{debug}('update_medium: ' . join(' ', map { "$_=$updates_result{$_}" } keys %updates_result));
+
if ($updates_result{1} == 0) {
#- only errors/unmodified, leave now
+ #- (this ensures buggy added medium is not added to urpmi.cfg)
return $updates_result{error} == 0;
}