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
commit63667f14a5c999dd96b6c868a114502dc8970a14 (patch)
treefb5e2e1ac534fa65c62fb7ada8d7826d54e080c2
parent312728c5b23daaad5a6040131a20df7ae5758158 (diff)
downloaddrakx-backup-do-not-use-63667f14a5c999dd96b6c868a114502dc8970a14.tar
drakx-backup-do-not-use-63667f14a5c999dd96b6c868a114502dc8970a14.tar.gz
drakx-backup-do-not-use-63667f14a5c999dd96b6c868a114502dc8970a14.tar.bz2
drakx-backup-do-not-use-63667f14a5c999dd96b6c868a114502dc8970a14.tar.xz
drakx-backup-do-not-use-63667f14a5c999dd96b6c868a114502dc8970a14.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.