aboutsummaryrefslogtreecommitdiffstats
path: root/find-lang.pl
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mandriva.org>2007-09-20 19:42:48 +0000
committerAnssi Hannula <anssi@mandriva.org>2007-09-20 19:42:48 +0000
commit21459786af04ef1ca8271a32f6784b92662f5424 (patch)
treebb97ed8a1b0dc0ccf4634f0c9a8261ffe54de538 /find-lang.pl
parent7f71b593bc2a5b1d2da6a13cd1e82cd870bfe08a (diff)
downloadrpm-setup-21459786af04ef1ca8271a32f6784b92662f5424.tar
rpm-setup-21459786af04ef1ca8271a32f6784b92662f5424.tar.gz
rpm-setup-21459786af04ef1ca8271a32f6784b92662f5424.tar.bz2
rpm-setup-21459786af04ef1ca8271a32f6784b92662f5424.tar.xz
rpm-setup-21459786af04ef1ca8271a32f6784b92662f5424.zip
Handle symlinks the same way as files in find-lang.pl, some symlinks in
documentation were previously left out.
Diffstat (limited to 'find-lang.pl')
-rw-r--r--find-lang.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/find-lang.pl b/find-lang.pl
index d87bef9..9b9c7a4 100644
--- a/find-lang.pl
+++ b/find-lang.pl
@@ -34,7 +34,7 @@ my %finallist; # filename => attr, easy way to perform uniq
File::Find::find(
sub {
my $file = substr($File::Find::name, length($buildroot));
- -f $File::Find::name or return;
+ -f $File::Find::name or -l $File::Find::name or return;
debug("next file is %s", $file);
my $langfile = $file;
if ($file =~ m:^((.*/share/locale)/([^/@]+)[^/]*).*/([^/]+)\.mo:) {