mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
gtk-icon-cache.bbclass:fix support postrm at image creation time
When use postrm on the build machine, it installs the hook in intercept-scripts directory and exit 0, the hook will be later invoked and it will properly call gtk-update-icon-cache. [YOCTO #3633] (From OE-Core rev: 6ae0b8339134300d0c179bd47dc3062e0e1f2f0b) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
15aa713482
commit
92209ae0cb
@@ -32,6 +32,24 @@ done
|
|||||||
}
|
}
|
||||||
|
|
||||||
gtk_icon_cache_postrm() {
|
gtk_icon_cache_postrm() {
|
||||||
|
if [ "x$D" != "x" ]; then
|
||||||
|
if [ ! -f $INTERCEPT_DIR/update_icon_cache ]; then
|
||||||
|
cat << "EOF" > $INTERCEPT_DIR/update_icon_cache
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# update native pixbuf loaders
|
||||||
|
gdk-pixbuf-query-loaders --update-cache
|
||||||
|
|
||||||
|
for icondir in $D/usr/share/icons/*/ ; do
|
||||||
|
if [ -d $icondir ] ; then
|
||||||
|
gtk-update-icon-cache -fqt $icondir
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
for icondir in /usr/share/icons/* ; do
|
for icondir in /usr/share/icons/* ; do
|
||||||
if [ -d $icondir ] ; then
|
if [ -d $icondir ] ; then
|
||||||
gtk-update-icon-cache -qt $icondir
|
gtk-update-icon-cache -qt $icondir
|
||||||
|
|||||||
Reference in New Issue
Block a user