summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-15 13:56:16 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-15 13:56:16 +0000
commit52c3115f06e5b0aa0be626dcca9d52df3797e2b2 (patch)
tree912eb8025d13208f0f72056934bfa2b00b59e609 /urpm.pm
parent52ab56d052cad845c9c9f037277f562d02872e25 (diff)
downloadurpmi-52c3115f06e5b0aa0be626dcca9d52df3797e2b2.tar
urpmi-52c3115f06e5b0aa0be626dcca9d52df3797e2b2.tar.gz
urpmi-52c3115f06e5b0aa0be626dcca9d52df3797e2b2.tar.bz2
urpmi-52c3115f06e5b0aa0be626dcca9d52df3797e2b2.tar.xz
urpmi-52c3115f06e5b0aa0be626dcca9d52df3797e2b2.zip
reorder
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm6
1 files 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);