From 52c3115f06e5b0aa0be626dcca9d52df3797e2b2 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 15 Nov 2006 13:56:16 +0000 Subject: reorder --- urpm.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/urpm.pm b/urpm.pm index 4efe4425..10b07806 100644 --- a/urpm.pm +++ b/urpm.pm @@ -2477,8 +2477,10 @@ sub get_source_packages { closedir $dh; } - #- clean download directory, do it here even if this is not the best moment. - clean_dir("$urpm->{cachedir}/partial") if $options{clean_all}; + if ($options{clean_all}) { + #- clean download directory, do it here even if this is not the best moment. + clean_dir("$urpm->{cachedir}/partial"); + } my ($error, @list_error, @list, %examined); -- cgit v1.2.1