On Tue, Sep 9, 2008 at 5:33 PM, Seth Vidal <skvidal@xxxxxxxxxxxxxxxxx> wrote: > > Here's a proof of concept plugin: > > http://skvidal.fedorapeople.org/misc/post-transaction-actions/ Ok cool - with one small fix to the plugin, this simple action: # Update the GTK+ icon cache when an icon is installed. # See: http://www.gtk.org/api/2.6/gtk/gtk-update-icon-cache.html /usr/share/icons/hicolor/*:any:gtk-update-icon-cache --quiet --force /usr/share/icons/hicolor seems to work. Now we can apply hundreds (thousand?) of patches of the following form, and probably in many cases entirely eliminate the single %post and %postun we've been copying and pasting around. It will be awesome. Index: hotssh.spec =================================================================== RCS file: /cvs/pkgs/rpms/hotssh/devel/hotssh.spec,v retrieving revision 1.1 diff -u -r1.1 hotssh.spec --- hotssh.spec 4 Aug 2008 19:01:32 -0000 1.1 +++ hotssh.spec 10 Sep 2008 18:14:01 -0000 @@ -4,7 +4,7 @@ Summary: Secure Shell Client Name: hotssh Version: 0.2.5 -Release: 1%{?dist} +Release: 2%{?dist} Source0: http://ftp.gnome.org/pub/GNOME/sources/hotssh/0.2/hotssh-%{version}.tar.bz2 License: GPLv2+ Group: User Interface/Desktops @@ -55,15 +55,10 @@ %dir %{python_sitelib}/hotssh/ %{python_sitelib}/hotssh/* -%post -touch --no-create %{_datadir}/icons/hicolor || : -%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : - -%postun -touch --no-create %{_datadir}/icons/hicolor || : -%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : - %changelog +* Wed Sep 10 2008 Colin Walters <walters@xxxxxxxxxx> - 0.2.5-2 +- Delete icon cache bits, now in yum post transaction + * Fri Aug 01 2008 Colin Walters <walters@xxxxxxxxxx> - 0.2.5-1 - New upstream -- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-list