summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-19 14:57:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-19 14:57:17 +0000
commit99c7749870003c079c6d13a7415e227c89a9c4a0 (patch)
treed2eafac7b72a92ae4c08ca24df703a83eb31120a /urpm
parent770863963c136a8f18892429043de7142d52d641 (diff)
downloadurpmi-99c7749870003c079c6d13a7415e227c89a9c4a0.tar
urpmi-99c7749870003c079c6d13a7415e227c89a9c4a0.tar.gz
urpmi-99c7749870003c079c6d13a7415e227c89a9c4a0.tar.bz2
urpmi-99c7749870003c079c6d13a7415e227c89a9c4a0.tar.xz
urpmi-99c7749870003c079c6d13a7415e227c89a9c4a0.zip
move things where it should be done
Diffstat (limited to 'urpm')
-rw-r--r--urpm/media.pm16
1 files changed, 5 insertions, 11 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index afcd9519..458cefc2 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -1244,7 +1244,7 @@ sub _read_cachedir_pubkey {
unlink "$urpm->{cachedir}/partial/pubkey";
}
-#- options: callback, force, nomd5sum, probe_with, quiet
+#- options: callback, force, nomd5sum, probe_with, quiet, nopubkey, wait_lock
#- (from _update_medium__parse_if_unmodified__local and _update_medium__parse_if_unmodified__remote)
sub _update_medium_first_pass {
my ($urpm, $medium, %options) = @_;
@@ -1313,9 +1313,11 @@ sub _update_medium_first_pass {
}
}
- #- make sure to rebuild base files and clear medium modified state.
$medium->{modified} = 0;
- $medium->{really_modified} = 1;
+
+ _get_pubkey_and_descriptions($urpm, $medium, $options{nopubkey});
+ _read_cachedir_pubkey($urpm, $medium, $options{wait_lock});
+ generate_medium_names($urpm, $medium);
1;
}
@@ -1388,14 +1390,6 @@ sub update_media {
return $updates_result{error} == 0;
}
- foreach my $medium (grep { !$_->{ignore} } @{$urpm->{media}}) {
- if ($medium->{really_modified}) {
- _get_pubkey_and_descriptions($urpm, $medium, $options{nopubkey});
- _read_cachedir_pubkey($urpm, $medium, $options{wait_lock});
- generate_medium_names($urpm, $medium);
- }
- }
-
if ($urpm->{modified}) {
if ($options{noclean}) {
#- clean headers cache directory to remove everything that is no longer