On Fri, Sep 19, 2008 at 12:08:14PM -0400, Jeff Johnson wrote:
> >>So? Use a glob pattern against RPMTAG_DIRNAMES
> >>elements to detect condition pkg-contains-directory.
> >Do you mean something like -- ?
> >%triggerin -- /usr/share/icons/hicolor/*/*/
> >gtk-update-icon-cache /usr/share/icons/hicolor
> >Possible implementation is: retrieve all Triggername index keys
> >with leading "/", and treat them as patterns. Then do O(N^2) nested
> >loop: for each DIRNAME in a package, for each Triggername pattern,
> >check for fnmatch(pattern, dirname).
> No. I haven't said anything at all about loops or implementation.
But it has to be implemented somehow...
> And how is piping every file to an external script any better or faster?
Technically there's no piping, only a file duplicated on stdin. And
"filetriggers" are run only once, at the end of transaction (they're
actually "posttrans filetriggers"), which saves consecutive ldconfig,
gtk-update-icon-cache, or whatever calls.
> For starters, there are many fewer directories, already uniqified, than
> there are file paths in packages ...
Received on Fri Sep 19 18:21:51 2008
- application/pgp-signature attachment: stored