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>
(cherry picked from commit d2f45dea4c
)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
ae1e0bf96a
commit
1a2bb6fd2f
@ -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