Red Hat Bugzilla – Bug 67368
find-lang.sh matches too many files
Last modified: 2008-05-01 11:38:02 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/0
Description of problem:
find-lang.sh uses following regexp to match .mo files for given PACKAGE_NAME
argument (called $NAME below)
so when called with argument `xxx', not only `xxx.mo' matches --
`abosulutely-anything-xxx.mo' matches too. In my case `gimp-libgimp' was
matched as `gimp' package name.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Actual reproduction involves gimp package building in my case -- which has
enough other problems itself, so:
$ mkdir -p rootdir/usr/share/locale/en/LC_MESSAGES
$ touch rootdir/usr/share/locale/en/LC_MESSAGES/util-linux.mo
$ /usr/bin/rpm/find-lang.sh rootdir linux
Actual Results: File linux.lang is created and it contains:
%defattr (644, root, root, 755)
Expected Results: linux.lang doesn't contain the second line (we asked for
`linux' not `util-linux').
A patch is included.
Created attachment 62265 [details]
CHecked into CVS, should be in rpm-4.1-0.36 when built.
Thanks for the patch.
put into redhat-rpm-config CVS