summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-04-21 20:40:05 +0000
committerThierry Vignaud <tv@mageia.org>2012-04-21 20:40:05 +0000
commitc8123dff0a5dbfff0a2100c207e421658e7cf3a9 (patch)
tree5601c0d64216126768b106cde7fb1d36bcbf155c
parentb64bd831d5db5df92efa07f19bd83ccdea8c690d (diff)
downloadmgaonline-c8123dff0a5dbfff0a2100c207e421658e7cf3a9.tar
mgaonline-c8123dff0a5dbfff0a2100c207e421658e7cf3a9.tar.gz
mgaonline-c8123dff0a5dbfff0a2100c207e421658e7cf3a9.tar.bz2
mgaonline-c8123dff0a5dbfff0a2100c207e421658e7cf3a9.tar.xz
mgaonline-c8123dff0a5dbfff0a2100c207e421658e7cf3a9.zip
(upgrade) invalidate urpmi cache on upgrade (mga#1588)
-rw-r--r--NEWS2
-rwxr-xr-xmgaapplet-upgrade-helper3
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index c4ec2576..451c2777 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- invalidate urpmi cache on upgrade (mga#1588)
+
Version 2.77.32 - 15 March 2012, Kamil Rytarowski
- stop using Mandriva URLs and replace them by www.mageia.org (mga#1590)
diff --git a/mgaapplet-upgrade-helper b/mgaapplet-upgrade-helper
index 357f7703..c9b8bad6 100755
--- a/mgaapplet-upgrade-helper
+++ b/mgaapplet-upgrade-helper
@@ -283,6 +283,9 @@ packages as well?)."))
log::explanations("removing all existing urpmi media for upgrade");
run_program::run('urpmi.removemedia', if_($root, '--urpmi-root', $root), '-a');
+ #- clear the mirror cache before upgrading:
+ eval { rm_rf("$::prefix/var/cache/urpmi/mirrors.cache") };
+
$urpm = Rpmdrake::open_db::fast_open_urpmi_db();
if ($urpm->{global_config}{downloader}) {
log::explanations("disabling custom downloader in order to use aria2");