summaryrefslogtreecommitdiffstats
path: root/urpm/media.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-22 12:23:32 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-22 12:23:32 +0000
commitc3a8748e270ac518b61a4d6aafba5d65559d5141 (patch)
treea652b4b2258f61a34d87fb7db9c706e33ffd71a3 /urpm/media.pm
parentf76b572f4594e493bfe9fee0c7cb9a314ca0d1a7 (diff)
downloadurpmi-c3a8748e270ac518b61a4d6aafba5d65559d5141.tar
urpmi-c3a8748e270ac518b61a4d6aafba5d65559d5141.tar.gz
urpmi-c3a8748e270ac518b61a4d6aafba5d65559d5141.tar.bz2
urpmi-c3a8748e270ac518b61a4d6aafba5d65559d5141.tar.xz
urpmi-c3a8748e270ac518b61a4d6aafba5d65559d5141.zip
remove md5sum from @PER_MEDIA_OPT (which only list per-medium options in
urpmi.cfg), so that urpmi.cfg do not contain the md5sum (and so urpmi.cfg doesn't need to be modified on urpmi.update, only /var/lib/urpmi/MD5SUM is modified) (bug introduced when creating @PER_MEDIA_OPT in r35745, fixed in r35832, but broken again in r35953)
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 c823a8d5..68665f1a 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -14,7 +14,6 @@ our @PER_MEDIA_OPT = qw(
ignore
key-ids
list
- md5sum
noreconfigure
priority
priority-upgrade
@@ -152,7 +151,7 @@ sub read_config {
$urpm->{media} = [ sort { $a->{priority} <=> $b->{priority} } @{$urpm->{media}} ];
- #- read MD5 sums (usually not in urpmi.cfg but in a separate file)
+ #- read MD5 sums (not in urpmi.cfg but in a separate file)
foreach (@{$urpm->{media}}) {
if (my $md5sum = urpm::md5sum::from_MD5SUM("$urpm->{statedir}/MD5SUM", statedir_hdlist_or_synthesis($urpm, $_))) {
$_->{md5sum} = $md5sum;
@@ -1582,6 +1581,7 @@ sub _update_medium_first_pass {
}
return;
}
+ unlink statedir_list($urpm, $medium);
delete $medium->{list};
{