summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-11 15:49:54 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-11 15:49:54 +0000
commitbf13bd767bcf38fd60ab7fc43420cae35d6b0897 (patch)
tree70333c869ceb4ae3ef6cff24846169756be60528
parentcfada41e3ae3bead816702db31118f300d567b7e (diff)
downloadurpmi-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
-rw-r--r--urpm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 97fd6ec9..5ec416a7 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -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) = @_;