diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-21 09:24:22 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-21 09:24:22 +0000 |
commit | 668c8543f50f2604d1423248bd5c96487befd5ce (patch) | |
tree | 96a014a736d0aa6b1997eef6b0a50e3713eae7f0 /urpm.pm | |
parent | b7dab8c8363cd4b599a389870b0493005b145be9 (diff) | |
download | urpmi-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.pm | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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})); |