On Sep 19, 2008, at 11:33 AM, Alexey Tourbin 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.
if pkg-contains-directory condition is true, set a boolean to run
gtk-update-icon-cache /usr/share/icons/hicolor
to ensure that script is run once (or not).
Q.E.D.
73 de Jeff
Received on Fri Sep 19 17:37:04 2008