From ce7859b540ed5653d46aee5a7fcbded10492b2e7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 5 Aug 2011 19:12:20 +0000 Subject: (choosePackages) do not crash if there's no mirror cache to erase --- perl-install/install/NEWS | 2 ++ perl-install/install/steps.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'perl-install/install') diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 74f93745e..6fa8c76de 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,5 @@ +- do not crash if there's no mirror cache to erase + Version 13.61 - 01 August 2011 - clear the mirror cache before upgrading (#1557) diff --git a/perl-install/install/steps.pm b/perl-install/install/steps.pm index 86421be43..5bb9499c9 100644 --- a/perl-install/install/steps.pm +++ b/perl-install/install/steps.pm @@ -259,7 +259,7 @@ sub choosePackages { my ($o, $o_compssListLevel) = @_; #- clear the mirror cache before upgrading: - rm_rf("$::prefix/var/cache/urpmi/mirrors.cache"); + eval { 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. -- cgit v1.2.1