RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Conflicts on files not symmetric

From: Alexey Tourbin <at@altlinux.ru>
Date: Fri 19 Sep 2008 - 18:21:50 CEST
Message-ID: <20080919162149.GQ32012@altlinux.org>
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
> Yes.
> >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 ...

  • application/pgp-signature attachment: stored
Received on Fri Sep 19 18:21:51 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.