summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-15 16:19:35 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-15 16:19:35 +0000
commitc4371178d66a06424463739c737af6b488153bf8 (patch)
treee6af94372336e6eb6bec595bf056629c99482ea1 /urpm.pm
parent0c2bd76964a9fa114030646f9edd90616b139c84 (diff)
downloadurpmi-c4371178d66a06424463739c737af6b488153bf8.tar
urpmi-c4371178d66a06424463739c737af6b488153bf8.tar.gz
urpmi-c4371178d66a06424463739c737af6b488153bf8.tar.bz2
urpmi-c4371178d66a06424463739c737af6b488153bf8.tar.xz
urpmi-c4371178d66a06424463739c737af6b488153bf8.zip
fix calls to {fatal}
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 250a9204..631f6c93 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -105,8 +105,8 @@ sub userdir {
my $dir = ($urpm->{urpmi_root} || '') . userdir_prefix($urpm) . $<;
mkdir $dir, 0755; # try to create it
- -d $dir && ! -l $dir or $urpm->{fatal}(N("fail to create directory %s", $dir));
- -o $dir && -w $dir or $urpm->{fatal}(N("invalid owner for directory %s", $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));
$dir;
}