summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-08-01 18:44:14 +0000
committerThierry Vignaud <tv@mageia.org>2011-08-01 18:44:14 +0000
commit5f4ef2416fd53d27b2f58fec80f81e32fbc91651 (patch)
treefb5e2e1ac534fa65c62fb7ada8d7826d54e080c2
parentc8702830fa9a2a40ce1b9e7095fa58a827025950 (diff)
downloaddrakx-5f4ef2416fd53d27b2f58fec80f81e32fbc91651.tar
drakx-5f4ef2416fd53d27b2f58fec80f81e32fbc91651.tar.gz
drakx-5f4ef2416fd53d27b2f58fec80f81e32fbc91651.tar.bz2
drakx-5f4ef2416fd53d27b2f58fec80f81e32fbc91651.tar.xz
drakx-5f4ef2416fd53d27b2f58fec80f81e32fbc91651.zip
(choosePackages) clear the mirror cache before upgrading (#1557)
-rw-r--r--perl-install/install/NEWS1
-rw-r--r--perl-install/install/steps.pm3
2 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 1ca89a2c2..2f369c55c 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,3 +1,4 @@
+- clear the mirror cache before upgrading (#1557)
- fix bootloader entries names
- detect (at least some (eg: Compaq USB numpad) (#1099)
- detect machines needing cpufreq
diff --git a/perl-install/install/steps.pm b/perl-install/install/steps.pm
index ca9281822..86421be43 100644
--- a/perl-install/install/steps.pm
+++ b/perl-install/install/steps.pm
@@ -258,6 +258,9 @@ sub selectSupplMedia { '' }
sub choosePackages {
my ($o, $o_compssListLevel) = @_;
+ #- clear the mirror cache before upgrading:
+ rm_rf("$::prefix/var/cache/urpmi/mirrors.cache");
+
#- now for upgrade, package that must be upgraded are
#- selected first, after is used the same scheme as install.