From 5fb14a3d73b19a81bc4b638feb009ab04c249e3a Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 6 Apr 2022 12:55:13 -0400 Subject: handle gtk4-update-icon cache and usr/doc/HTML, check for executable docs --- sbopkglint.d/45-doinst.t.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sbopkglint.d/45-doinst.t.sh') 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 )" != "" ] && \ -- cgit v1.2.3