summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.