summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-15 16:55:29 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-15 16:55:29 +0000
commit3b444951a1e0efac6d703fb0fe97fc8d826a8ddc (patch)
tree9032af31ca68f2efab4d0f060fe13193f92e1859 /urpm.pm
parent4e09cceef3d7c86f9eff7c5e65c2ba88e2e78c85 (diff)
downloadurpmi-3b444951a1e0efac6d703fb0fe97fc8d826a8ddc.tar
urpmi-3b444951a1e0efac6d703fb0fe97fc8d826a8ddc.tar.gz
urpmi-3b444951a1e0efac6d703fb0fe97fc8d826a8ddc.tar.bz2
urpmi-3b444951a1e0efac6d703fb0fe97fc8d826a8ddc.tar.xz
urpmi-3b444951a1e0efac6d703fb0fe97fc8d826a8ddc.zip
cleanup this mess
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm8
1 files changed, 3 insertions, 5 deletions
diff --git a/urpm.pm b/urpm.pm
index d5e0bbcd..cc489598 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1126,22 +1126,20 @@ sub _update_media__virtual {
my ($urpm, $medium, $with_hdlist_dir) = @_;
if ($medium->{with_hdlist} && -e $with_hdlist_dir) {
- delete @$medium{qw(start end)};
+ delete $medium->{modified};
$urpm->{md5sum_modified} = 1;
if ($medium->{synthesis}) {
_parse_synthesis($urpm, $medium, $with_hdlist_dir);
- delete $medium->{modified};
$medium->{synthesis} = 1;
if (!is_valid_medium($medium)) {
_parse_hdlist($urpm, $medium, $with_hdlist_dir);
- delete @$medium{qw(modified synthesis)};
+ delete $medium->{synthesis};
}
} else {
_parse_hdlist($urpm, $medium, $with_hdlist_dir);
- delete @$medium{qw(modified synthesis)};
+ delete $medium->{synthesis};
if (!is_valid_medium($medium)) {
_parse_synthesis($urpm, $medium, $with_hdlist_dir);
- delete $medium->{modified};
$medium->{synthesis} = 1;
}
}