summaryrefslogtreecommitdiffstats
path: root/urpm/media.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-06-05 07:26:49 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-06-05 07:26:49 +0000
commitf4e3ed0e00207712c8c7d8af31212f5cb56d1bc1 (patch)
treed8304cb334f47c03c211a0227f41f9bb353127f5 /urpm/media.pm
parent631e503423d88d04c53623eef3daaf2885098226 (diff)
downloadurpmi-f4e3ed0e00207712c8c7d8af31212f5cb56d1bc1.tar
urpmi-f4e3ed0e00207712c8c7d8af31212f5cb56d1bc1.tar.gz
urpmi-f4e3ed0e00207712c8c7d8af31212f5cb56d1bc1.tar.bz2
urpmi-f4e3ed0e00207712c8c7d8af31212f5cb56d1bc1.tar.xz
urpmi-f4e3ed0e00207712c8c7d8af31212f5cb56d1bc1.zip
- urpmi.addmedia, urpmi.update:
o fix --no-md5sum (regression introduced in 5.20) (#41237)
Diffstat (limited to 'urpm/media.pm')
-rw-r--r--urpm/media.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index 12d7f0cc..b2c12378 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -1337,7 +1337,7 @@ sub _update_medium__parse_if_unmodified__local {
}
my $ok = get_synthesis__local($urpm, $medium, $options->{callback});
- $ok &&= check_synthesis_md5sum($urpm, $medium) if !$options->{force};
+ $ok &&= check_synthesis_md5sum($urpm, $medium) if !$options->{force} && !$options->{nomd5sum};
if ($ok) {
1;
@@ -1452,7 +1452,7 @@ sub _update_medium__parse_if_unmodified__remote {
$ok = get_synthesis__remote($urpm, $medium, $options->{callback}, $options->{quiet});
}
- $ok &&= check_synthesis_md5sum($urpm, $medium) if !$options->{force};
+ $ok &&= check_synthesis_md5sum($urpm, $medium) if !$options->{force} && !$options->{nomd5sum};
$options->{callback} and $options->{callback}('done', $medium->{name});