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:02:39 CEST
Message-ID: <20080919160239.GP32012@altlinux.org>
On Fri, Sep 19, 2008 at 11:51:32AM -0400, Jeff Johnson wrote:
> >$ find /usr/share/icons/hicolor -mindepth 2 -type d |sort -u |head
> >/usr/share/icons/hicolor/128x128/actions
> >/usr/share/icons/hicolor/128x128/animations
> >/usr/share/icons/hicolor/128x128/apps
> >/usr/share/icons/hicolor/128x128/categories
> >/usr/share/icons/hicolor/128x128/devices
> >/usr/share/icons/hicolor/128x128/emblems
> >/usr/share/icons/hicolor/128x128/emotes
> >/usr/share/icons/hicolor/128x128/filesystems
> >/usr/share/icons/hicolor/128x128/intl
> >/usr/share/icons/hicolor/128x128/mimetypes
> >$ find /usr/share/icons/hicolor -mindepth 2 -type d  |wc -l
> >156
> >$
> 
> 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).


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