summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-20 16:08:17 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-20 16:08:17 +0000
commitfc54b5ee208ba373d99ea692f5c81865d9ee2732 (patch)
tree972f22ae01bc00eeb3c7526e411e80dee5fba386 /perl-install
parentfd02fc8c5a08762f7cab64d3935c4d28e5a83b58 (diff)
downloaddrakx-fc54b5ee208ba373d99ea692f5c81865d9ee2732.tar
drakx-fc54b5ee208ba373d99ea692f5c81865d9ee2732.tar.gz
drakx-fc54b5ee208ba373d99ea692f5c81865d9ee2732.tar.bz2
drakx-fc54b5ee208ba373d99ea692f5c81865d9ee2732.tar.xz
drakx-fc54b5ee208ba373d99ea692f5c81865d9ee2732.zip
Fix test for dangling symlink
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/pkgs.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index 476d473bb..4c5678472 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -357,7 +357,7 @@ sub unselectAllPackages($) {
sub urpmidir() {
my $v = "$::prefix/var/lib/urpmi";
- -l $v && !-e _ and unlink $v and mkdir $v, 0755; #- dangling symlink
+ -l $v && !-e $v and unlink $v and mkdir $v, 0755; #- dangling symlink
-w $v ? $v : '/tmp';
}