diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-21 17:45:02 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-21 17:45:02 +0000 |
commit | 3519a709524f3c8b4ea550838bcb863fe7e4a2c0 (patch) | |
tree | 6bfdcea83e14772a16916f79dcb43c753824a579 /urpm.pm | |
parent | 871705259637a1b980f74fe118c5a23a0674b283 (diff) | |
download | urpmi-3519a709524f3c8b4ea550838bcb863fe7e4a2c0.tar urpmi-3519a709524f3c8b4ea550838bcb863fe7e4a2c0.tar.gz urpmi-3519a709524f3c8b4ea550838bcb863fe7e4a2c0.tar.bz2 urpmi-3519a709524f3c8b4ea550838bcb863fe7e4a2c0.tar.xz urpmi-3519a709524f3c8b4ea550838bcb863fe7e4a2c0.zip |
move clean_dir()
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -79,14 +79,6 @@ sub db_open_or_die { $db; } -sub clean_dir { - my ($dir) = @_; - - require File::Path; - File::Path::rmtree([$dir]); - mkdir $dir, 0755; -} - sub remove_obsolete_headers_in_cache { my ($urpm) = @_; my %headers; @@ -492,7 +484,7 @@ sub get_source_packages { if ($options{clean_all}) { #- clean download directory, do it here even if this is not the best moment. - clean_dir("$urpm->{cachedir}/partial"); + urpm::sys::clean_dir("$urpm->{cachedir}/partial"); } my ($error, @list_error, @list, %examined); |