summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-21 09:24:22 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-21 09:24:22 +0000
commit668c8543f50f2604d1423248bd5c96487befd5ce (patch)
tree96a014a736d0aa6b1997eef6b0a50e3713eae7f0 /urpm.pm
parentb7dab8c8363cd4b599a389870b0493005b145be9 (diff)
downloadurpmi-668c8543f50f2604d1423248bd5c96487befd5ce.tar
urpmi-668c8543f50f2604d1423248bd5c96487befd5ce.tar.gz
urpmi-668c8543f50f2604d1423248bd5c96487befd5ce.tar.bz2
urpmi-668c8543f50f2604d1423248bd5c96487befd5ce.tar.xz
urpmi-668c8543f50f2604d1423248bd5c96487befd5ce.zip
fully clean {cachedir}/partial/ on error
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 6388b6d0..6e597e47 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1805,8 +1805,7 @@ sub _update_medium_first_pass_failed {
!$medium->{virtual} or return;
#- an error has occured for updating the medium, we have to remove temporary files.
- unlink cachedir_hdlist($urpm, $medium);
- $medium->{list} and unlink cachedir_list($urpm, $medium);
+ unlink(glob("$urpm->{cachedir}/partial/*"));
#- read default synthesis (we have to make sure nothing get out of depslist).
if (!_parse_synthesis($urpm, $medium, statedir_synthesis($urpm, $medium))) {
$urpm->{error}(N("problem reading synthesis file of medium \"%s\"", $medium->{name}));