From 668c8543f50f2604d1423248bd5c96487befd5ce Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 21 Nov 2006 09:24:22 +0000 Subject: fully clean {cachedir}/partial/ on error --- urpm.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'urpm.pm') 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})); -- cgit v1.2.1