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) \(.*/share/locale/\)\([^/_]\+\)\(.*'"$NAME"'\.mo$\) 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): How reproducible: Always 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) %lang(en) /usr/share/locale/en/LC_MESSAGES/util-linux.mo Expected Results: linux.lang doesn't contain the second line (we asked for `linux' not `util-linux'). Additional info: A patch is included.
Created attachment 62265 [details] Patch
CHecked into CVS, should be in rpm-4.1-0.36 when built. Thanks for the patch.
put into redhat-rpm-config CVS