]> code.ossystems Code Review - openembedded-core.git/commitdiff
gtk-icon-cache: rename intercept to update_gtk_icon_cache
authorRoss Burton <ross.burton@intel.com>
Mon, 24 Jun 2019 16:27:11 +0000 (17:27 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Jun 2019 10:14:02 +0000 (11:14 +0100)
The intercept is called update_icon_cache which is vague: rename to
update_gtk_icon_cache to make it clearer what it is for, and add a comment
explaining what class caused it to be used.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/gtk-icon-cache.bbclass
scripts/postinst-intercepts/update_gtk_icon_cache [moved from scripts/postinst-intercepts/update_icon_cache with 76% similarity]

index 66fe781bd2c2252d2715faa6243f914bc9888901..91cb4ad4090a9ff9670cdceba5edb46a6ac3d596 100644 (file)
@@ -6,7 +6,7 @@ PACKAGE_WRITE_DEPS += "gtk+3-native gdk-pixbuf-native"
 
 gtk_icon_cache_postinst() {
 if [ "x$D" != "x" ]; then
-       $INTERCEPT_DIR/postinst_intercept update_icon_cache ${PKG} \
+       $INTERCEPT_DIR/postinst_intercept update_gtk_icon_cache ${PKG} \
                mlprefix=${MLPREFIX} \
                libdir_native=${libdir_native}
 else
@@ -24,7 +24,7 @@ fi
 
 gtk_icon_cache_postrm() {
 if [ "x$D" != "x" ]; then
-       $INTERCEPT_DIR/postinst_intercept update_icon_cache ${PKG} \
+       $INTERCEPT_DIR/postinst_intercept update_gtk_icon_cache ${PKG} \
                mlprefix=${MLPREFIX} \
                libdir=${libdir}
 else
similarity index 76%
rename from scripts/postinst-intercepts/update_icon_cache
rename to scripts/postinst-intercepts/update_gtk_icon_cache
index 212209a9dafdf4da0cc2c6ee0170b3ef0246f21c..99367a2855a14875959826654761184927e52b73 100644 (file)
@@ -2,10 +2,11 @@
 #
 # SPDX-License-Identifier: MIT
 #
+# Post-install intercept for gtk-icon-cache.bbclass
 
 set -e
 
-# update native pixbuf loaders
+# Update native pixbuf loaders
 $STAGING_DIR_NATIVE/${libdir_native}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache
 
 for icondir in $D/usr/share/icons/*/ ; do