summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-11 15:49:51 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-11 15:49:51 +0000
commitcfada41e3ae3bead816702db31118f300d567b7e (patch)
tree8fd3ed2511c182a5ac559c6e2e11db2c666505fc /urpm.pm
parent4b5ea6422172f4cc577f8bedb61f1ad340b17c9b (diff)
downloadurpmi-cfada41e3ae3bead816702db31118f300d567b7e.tar
urpmi-cfada41e3ae3bead816702db31118f300d567b7e.tar.gz
urpmi-cfada41e3ae3bead816702db31118f300d567b7e.tar.bz2
urpmi-cfada41e3ae3bead816702db31118f300d567b7e.tar.xz
urpmi-cfada41e3ae3bead816702db31118f300d567b7e.zip
(check_cache_dir) rename as check_dir() which is more meaningful
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 1bf58a15..97fd6ec9 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -137,7 +137,7 @@ sub prefer_rooted {
-e "$root$file" ? "$root$file" : $file;
}
-sub check_cache_dir {
+sub check_dir {
my ($urpm, $dir) = @_;
-d $dir && ! -l $dir or $urpm->{fatal}(1, N("fail to create directory %s", $dir));
-o $dir && -w $dir or $urpm->{fatal}(1, N("invalid owner for directory %s", $dir));
@@ -148,7 +148,7 @@ sub init_cache_dir {
mkdir $dir, 0755; # try to create it
- check_cache_dir($urpm, $dir);
+ check_dir($urpm, $dir);
mkdir "$dir/partial";
mkdir "$dir/rpms";