summaryrefslogtreecommitdiffstats
path: root/mgaapplet-upgrade-helper
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 /mgaapplet-upgrade-helper
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)
Diffstat (limited to 'mgaapplet-upgrade-helper')
-rwxr-xr-xmgaapplet-upgrade-helper3
1 files changed, 3 insertions, 0 deletions
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");