RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Conflicts on files not symmetric

From: Jeff Johnson <n3npq@mac.com>
Date: Fri 19 Sep 2008 - 17:51:32 CEST
Message-id: <177F1A6E-888D-4D3C-8F22-6364B5BA914C@mac.com>

On Sep 19, 2008, at 11:47 AM, Alexey Tourbin wrote:

> On Fri, Sep 19, 2008 at 11:36:52AM -0400, Jeff Johnson wrote:
>>> On Fri, Sep 19, 2008 at 11:26:23AM -0400, Jeff Johnson wrote:
>>>> Likely the 1st thing to get into place is the ability to trigger  
>>>> from
>>>> adding
>>>> a file to a directory, i.e. trigger if RPMTAG_DIRNAMES matches a
>>>> trigger
>>>> pattern, add trailing / to pattern to differentiate a dirname
>>>> trigger.
>>>
>>> Triggers based on DIRNAMES are not enough.  Here is an example:
>>> when e.g. /usr/share/icons/hicolor/32x32/apps/kpdf.png is installed,
>>> upgraded, or removed, "gtk-update-icon-cache /usr/share/icons/ 
>>> hicolor"
>>> must be triggered.
>>
>> And that is exactly the same condition as RPMTAG_DIRNAMES contains
>> /usr/share/icons/hicolor/32x32/apps/ for a package that is installed/
>> erased.
>
> $ 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.

73 de Jeff
Received on Fri Sep 19 17:51:55 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.