On 01/27/11 09:08 PM, Takeshi Asano wrote:

And you can modify configuration e.g.:

pkg change-facet 'facet.locale.*=false' 'facet.locale.de=true' 'facet.locale.de_*=true'

to select German only.



pkglint(1) currently complains (warning) about attributes with '_' in their name. The reasoning seems to be that there is a fear that the potential use of both '-' and '_' in attribute names will lead to confusion. Because of this, the userland gate is now using the following pkgmogrify(1) transforms

   <transform dir link hardlink path=.*/locale$ -> default facet.locale
   true>

   <transform dir file link hardlink \
        path=.*/locale/([^_/]+)([\._].+){0,1}(/.+){0,1}$ -> \
        default facet.locale.%<\1> true>

to automatically add 'facet.locale.*=true' attributes to locale specific directories. Which tags paths with zh, zh_CN, zh_CN.UTF-8, zh_HK, zh_TW, zh_TW.BIG5, ... with facet.locale.zh=true.

Until recently, we would tag paths zh with facet.locale.zh=true; zh_CN, zh_CN.UTF-8 with facet.locale.zh_CN=true; etc.

I am wondering just what the preferred magic formula is for 'facet.locale.*' tag naming.

    -Norm

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to