diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-10-11 15:49:54 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-10-11 15:49:54 +0000 |
commit | bf13bd767bcf38fd60ab7fc43420cae35d6b0897 (patch) | |
tree | 70333c869ceb4ae3ef6cff24846169756be60528 /urpm.pm | |
parent | cfada41e3ae3bead816702db31118f300d567b7e (diff) | |
download | urpmi-bf13bd767bcf38fd60ab7fc43420cae35d6b0897.tar urpmi-bf13bd767bcf38fd60ab7fc43420cae35d6b0897.tar.gz urpmi-bf13bd767bcf38fd60ab7fc43420cae35d6b0897.tar.bz2 urpmi-bf13bd767bcf38fd60ab7fc43420cae35d6b0897.tar.xz urpmi-bf13bd767bcf38fd60ab7fc43420cae35d6b0897.zip |
(init_cache_dir) rename as init_dir() which is more meaningful
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -143,7 +143,7 @@ sub check_dir { -o $dir && -w $dir or $urpm->{fatal}(1, N("invalid owner for directory %s", $dir)); } -sub init_cache_dir { +sub init_dir { my ($urpm, $dir) = @_; mkdir $dir, 0755; # try to create it @@ -165,7 +165,7 @@ sub userdir { $< or return; my $dir = ($urpm->{urpmi_root} || '') . userdir_prefix($urpm) . $<; - init_cache_dir($urpm, $dir); + init_dir($urpm, $dir); } sub ensure_valid_cachedir { my ($urpm) = @_; |