package/libgtk3: fix update-icon-cache on empty directory
If both, hicolor-icon-theme (selected by libgtk3-demo) and adwaita-icon-theme is not selected, then the /usr/share/icons folder is empty, causing find to fail. Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com> Tested-by: Adrian Perez de Castro <aperez@igalia.com> Reviewed-by: Adrian Perez de Castro <aperez@igalia.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
05f9c34ad0
commit
d2f45dea4c
@ -146,8 +146,9 @@ endef
|
||||
# Create icon-theme.cache for each of the icon directories/themes
|
||||
# It's not strictly necessary but speeds up lookups
|
||||
define LIBGTK3_UPDATE_ICON_CACHE
|
||||
find $(TARGET_DIR)/usr/share/icons -maxdepth 1 -mindepth 1 -type d \
|
||||
-exec $(HOST_DIR)/bin/gtk-update-icon-cache {} \;
|
||||
[ ! -d $(TARGET_DIR)/usr/share/icons ] || \
|
||||
find $(TARGET_DIR)/usr/share/icons -maxdepth 1 -mindepth 1 -type d \
|
||||
-exec $(HOST_DIR)/bin/gtk-update-icon-cache {} \;
|
||||
endef
|
||||
LIBGTK3_TARGET_FINALIZE_HOOKS += LIBGTK3_UPDATE_ICON_CACHE
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user