summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-10-20 12:11:25 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-10-20 12:11:25 +0000
commite75f56f807050196afe64d494e55d634ea83b2c2 (patch)
treeddb753f3ea92800d06382208a7f75b52cfce6953 /urpm.pm
parent157c39c7997ed7d9dd36c369e3bbd05d24a4774d (diff)
downloadurpmi-e75f56f807050196afe64d494e55d634ea83b2c2.tar
urpmi-e75f56f807050196afe64d494e55d634ea83b2c2.tar.gz
urpmi-e75f56f807050196afe64d494e55d634ea83b2c2.tar.bz2
urpmi-e75f56f807050196afe64d494e55d634ea83b2c2.tar.xz
urpmi-e75f56f807050196afe64d494e55d634ea83b2c2.zip
Follow symbolic links when searching for rpms
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm9
1 files changed, 2 insertions, 7 deletions
diff --git a/urpm.pm b/urpm.pm
index 2920ae73..c51af8f2 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1242,14 +1242,9 @@ this could happen if you mounted manually the directory when creating the medium
}
}
} else {
- #- try to find rpm files, use recursive method, added additional
- #- / after dir to make sure it will be taken into account if this
- #- is a symlink to a directory.
- #- make sure rpm filename format is correct and is not a source rpm
- #- which are not well managed by urpmi.
File::Find::find { wanted => sub {
- -f && /\.rpm$/ && push @files, "$File::Find::dir/$_"
- } }, $dir;
+ -f && /\.rpm$/ and push @files, "$File::Find::dir/$_"
+ }, follow => 1 }, $dir;
#- check files contains something good!
if (@files > 0) {