]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
intercepts/update_icon_cache: use STAGING_DIR_NATIVE from environment
authorRoss Burton <ross.burton@intel.com>
Tue, 20 Oct 2015 19:17:58 +0000 (20:17 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Oct 2015 11:42:41 +0000 (12:42 +0100)
Instead of expecting that the calling postinst has exported
STAGING_LIBDIR_NATIVE (which will get set to the sysroot at package build time
and may not be correct if sstate is used), use the new STAGING_DIR_NATIVE that
is exported by rootfs.py.

[ YOCTO #8547 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/postinst-intercepts/update_icon_cache

index c02273d52a73b11d84fe5a0205a9480085929ff5..df9bdecc99e5d25acab76a487fe83f94948b82d5 100644 (file)
@@ -3,7 +3,7 @@
 set -e
 
 # update native pixbuf loaders
-${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache
+$STAGING_DIR_NATIVE/${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache
 
 for icondir in $D/usr/share/icons/*/ ; do
     if [ -d $icondir ] ; then