aboutsummaryrefslogtreecommitdiff
path: root/sbopkglint.d/45-doinst.t.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-06 12:55:13 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-06 12:55:13 -0400
commit5fb14a3d73b19a81bc4b638feb009ab04c249e3a (patch)
tree3de6ca7e4260ac257929e15a262b85a9efd5ebb1 /sbopkglint.d/45-doinst.t.sh
parent6c1acea4bd4a1f1c8329c7160b8d72f5ad2c108c (diff)
downloadsbo-maintainer-tools-5fb14a3d73b19a81bc4b638feb009ab04c249e3a.tar.gz
handle gtk4-update-icon cache and usr/doc/HTML, check for executable docs
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 )" != "" ] && \