diff options
author | Thierry Vignaud <tv@mageia.org> | 2011-08-05 19:12:20 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2011-08-05 19:12:20 +0000 |
commit | ce7859b540ed5653d46aee5a7fcbded10492b2e7 (patch) | |
tree | 033e405ced0ac8f80b95f8a7b2c9d36ce7be72ef /perl-install/install/steps.pm | |
parent | 7528b5e5782d76e59a2ec17af793b07089426695 (diff) | |
download | drakx-ce7859b540ed5653d46aee5a7fcbded10492b2e7.tar drakx-ce7859b540ed5653d46aee5a7fcbded10492b2e7.tar.gz drakx-ce7859b540ed5653d46aee5a7fcbded10492b2e7.tar.bz2 drakx-ce7859b540ed5653d46aee5a7fcbded10492b2e7.tar.xz drakx-ce7859b540ed5653d46aee5a7fcbded10492b2e7.zip |
(choosePackages) do not crash if there's no mirror cache to erase
Diffstat (limited to 'perl-install/install/steps.pm')
-rw-r--r-- | perl-install/install/steps.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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. |