Author: kalikiana
Date: 2009-11-20 15:41:21 +0200 (Fri, 20 Nov 2009)
New Revision: 19514

Added:
   projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/gtk-update-icon-cache
   projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/libgtk2.0-bin.triggers
Modified:
   projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/changelog
   projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/libgtk2.0-bin.files
   projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/libgtk2.0-bin.postinst
   projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/rules
Log:
gtk+2.0 (2:2.14.7-1maemo12-1) unstable; urgency=low

  * Use dpkg file trigger on /usr/share/icons/hicolor for gtk-update-icon-cache.

 -- Christian Dywan <christ...@lanedo.com>  Fri, 20 Nov 2009 12:35:17 +0100



Modified: projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/changelog
===================================================================
--- projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/changelog   2009-11-20 
13:35:29 UTC (rev 19513)
+++ projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/changelog   2009-11-20 
13:41:21 UTC (rev 19514)
@@ -1,3 +1,9 @@
+gtk+2.0 (2:2.14.7-1maemo12-1) unstable; urgency=low
+
+  * Use dpkg file trigger on /usr/share/icons/hicolor for 
gtk-update-icon-cache.
+
+ -- Christian Dywan <christ...@lanedo.com>  Fri, 20 Nov 2009 12:35:17 +0100
+
 gtk+2.0 (2:2.14.7-1maemo12) unstable; urgency=low
 
   * Fixes: NB#139504 - GdkScreen needs to respond to size events from

Added: projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/gtk-update-icon-cache
===================================================================
--- projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/gtk-update-icon-cache       
2009-11-20 13:35:29 UTC (rev 19513)
+++ projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/gtk-update-icon-cache       
2009-11-20 13:41:21 UTC (rev 19514)
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+if type dpkg-trigger >/dev/null 2>&1 && \
+    dpkg-trigger /usr/share/icons/hicolor >/dev/null 2>&1; then
+        echo Deferring gtk-update-icon-cache...
+        exit 0
+fi
+echo Doing gtk-update-icon-cache
+exec gtk-update-icon-cache-now "$@"

Modified: projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/libgtk2.0-bin.files
===================================================================
--- projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/libgtk2.0-bin.files 
2009-11-20 13:35:29 UTC (rev 19513)
+++ projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/libgtk2.0-bin.files 
2009-11-20 13:41:21 UTC (rev 19514)
@@ -4,4 +4,5 @@
 usr/share/man/man1/gdk-pixbuf-query-loaders.1*
 etc/gtk-2.0/*
 usr/bin/gtk-update-icon-cache
+usr/bin/gtk-update-icon-cache-now
 usr/share/man/man1/gtk-update-icon-cache.1*

Modified: projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/libgtk2.0-bin.postinst
===================================================================
--- projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/libgtk2.0-bin.postinst      
2009-11-20 13:35:29 UTC (rev 19513)
+++ projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/libgtk2.0-bin.postinst      
2009-11-20 13:41:21 UTC (rev 19514)
@@ -29,6 +29,11 @@
        /usr/sbin/update-gdkpixbuf-loaders
     ;;
 
+    triggered)
+       echo "Triggered icon cache update."
+       gtk-update-icon-cache-now -qft /usr/share/icons/hicolor
+    ;;
+
     abort-upgrade|abort-remove|abort-deconfigure)
 
     ;;

Added: projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/libgtk2.0-bin.triggers
===================================================================
--- projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/libgtk2.0-bin.triggers      
2009-11-20 13:35:29 UTC (rev 19513)
+++ projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/libgtk2.0-bin.triggers      
2009-11-20 13:41:21 UTC (rev 19514)
@@ -0,0 +1,2 @@
+# We need to update the icon cache when icons change
+interest /usr/share/icons/hicolor

Modified: projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/rules
===================================================================
--- projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/rules       2009-11-20 
13:35:29 UTC (rev 19513)
+++ projects/haf/tags/gtk+/2.14.7-1maemo12-1/debian/rules       2009-11-20 
13:41:21 UTC (rev 19514)
@@ -198,6 +198,10 @@
                chmod a-x $$f; \
        done
 
+       # replace gtk-update-icon-cache with trigger wrapper
+       mv debian/tmp/usr/bin/gtk-update-icon-cache 
debian/tmp/usr/bin/gtk-update-icon-cache-now
+       install -m 755 $(CURDIR)/debian/gtk-update-icon-cache 
$(CURDIR)/debian/tmp/usr/bin/
+
        # clean the unnecessary files up
        rm -rf debian/tmp/usr/share/gtk-doc
 
@@ -286,6 +290,10 @@
        dh_installdeb -a
        dh_shlibdeps -l$(libpath) -a
        cat debian/*/DEBIAN/shlibs > debian/shlibs.local
+       # install triggers
+       cp `pwd`/debian/libgtk2.0-bin.triggers \
+           `pwd`/debian/libgtk2.0-bin/DEBIAN/triggers
+       chmod 0644 `pwd`/debian/libgtk2.0-bin/DEBIAN/triggers
        dh_gencontrol -a
        dh_md5sums -a
        dh_builddeb -a

_______________________________________________
maemo-commits mailing list
maemo-commits@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-commits

Reply via email to