summaryrefslogtreecommitdiffstats
path: root/urpmi
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-05-19 15:15:57 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-05-19 15:15:57 +0000
commit94c30b32db811cac8d564a19175a3f19455b60f1 (patch)
tree12bff377c3dc9793bb9c9863eac5505481d80bff /urpmi
parent901c2730e6583d1c7fbcbe9b68074a9059729508 (diff)
downloadurpmi-94c30b32db811cac8d564a19175a3f19455b60f1.tar
urpmi-94c30b32db811cac8d564a19175a3f19455b60f1.tar.gz
urpmi-94c30b32db811cac8d564a19175a3f19455b60f1.tar.bz2
urpmi-94c30b32db811cac8d564a19175a3f19455b60f1.tar.xz
urpmi-94c30b32db811cac8d564a19175a3f19455b60f1.zip
- urpmi:
o --auto-update should behave like urpmi.update when mirrorlist is outdated (cf http://forum.mandriva.com/viewtopic.php?t=86837)
Diffstat (limited to 'urpmi')
-rwxr-xr-xurpmi31
1 files changed, 13 insertions, 18 deletions
diff --git a/urpmi b/urpmi
index a120a798..a8f478d5 100755
--- a/urpmi
+++ b/urpmi
@@ -353,29 +353,13 @@ my $urpmi_lock = !$env && !$options{nolock} && urpm::lock::urpmi_db($urpm, '', w
#- should we ignore arch compatibility
if ($urpm->{options}{ignorearch}) { urpm::shunt_ignorearch() }
-my %config_hash = (
- excludemedia => $excludemedia,
- media => $media,
- parallel => $parallel,
- searchmedia => $searchmedia,
- cmdline_skiplist => $options{skip},
- sortmedia => $sortmedia,
- synthesis => $options{synthesis},
- update => $update,
- usedistrib => $options{usedistrib},
- probe_with => $options{probe_with},
-);
-
if ($urpm->{root}) {
$urpm->{options}{'priority-upgrade'} = '' if !$ENV{TESTING_priority_upgrade};
}
if ($auto_update && !$bug && !$env) {
#- For translators : there are several media here
$urpm->{log}(N("Updating media...\n"));
- #- FIXME we need to configure it twice; otherwise
- #- some settings are lost (like the skiplist) for
- #- some reason.
- urpm::media::configure($urpm, %config_hash);
+ urpm::media::read_config($urpm);
urpm::media::update_media($urpm,
all => 1,
callback => \&urpm::download::sync_logger,
@@ -389,7 +373,18 @@ if ($auto_update && !$bug && !$env) {
$urpm->{obsoletes} = {};
}
-urpm::media::configure($urpm, %config_hash);
+urpm::media::configure($urpm,
+ excludemedia => $excludemedia,
+ media => $media,
+ parallel => $parallel,
+ searchmedia => $searchmedia,
+ cmdline_skiplist => $options{skip},
+ sortmedia => $sortmedia,
+ synthesis => $options{synthesis},
+ update => $update,
+ usedistrib => $options{usedistrib},
+ probe_with => $options{probe_with},
+);
if ($bug) {
require urpm::bug_report;