aboutsummaryrefslogtreecommitdiff
path: root/sbopkglint.d/45-doinst.t.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sbopkglint.d/45-doinst.t.sh')
-rw-r--r--sbopkglint.d/45-doinst.t.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/sbopkglint.d/45-doinst.t.sh b/sbopkglint.d/45-doinst.t.sh
index ae47c72..e127189 100644
--- a/sbopkglint.d/45-doinst.t.sh
+++ b/sbopkglint.d/45-doinst.t.sh
@@ -36,10 +36,15 @@ doinst_warn() {
doinst_chk_command() {
local cmd="$1"
+
+ # special case here: allow gtk4-update-icon-cache in place of
+ # gtk-update-icon-cache. they work identically, so it doesn't matter.
+ [ "$cmd" = "gtk-update-icon-cache" ] && grep_doinst gtk4-update-icon-cache && return
+
grep_doinst "$cmd" || doinst_warn "$cmd"
}
-[ "$( find -L usr/share/icons -type f 2>/dev/null )" != "" ] && \
+[ "$( find -L usr/share/icons/hicolor -type f 2>/dev/null )" != "" ] && \
doinst_chk_command "gtk-update-icon-cache"
[ "$( find -L usr/share/applications -type f 2>/dev/null )" != "" ] && \