On 10/02/2017 08:36 AM, Michał Górny wrote:
> Closes: https://bugs.gentoo.org/631820
> ---
>  bin/postinst-qa-check.d/50gnome2-utils | 2 ++
>  bin/postinst-qa-check.d/50xdg-utils    | 4 ++++
>  2 files changed, 6 insertions(+)
> 
> diff --git a/bin/postinst-qa-check.d/50gnome2-utils 
> b/bin/postinst-qa-check.d/50gnome2-utils
> index 569633fe3..7f1b0b847 100644
> --- a/bin/postinst-qa-check.d/50gnome2-utils
> +++ b/bin/postinst-qa-check.d/50gnome2-utils
> @@ -1,6 +1,8 @@
>  # check for missing calls to gnome2-utils regen functions
>  
>  gnome2_icon_cache_check() {
> +     type -P gtk-update-icon-cache &>/dev/null || return
> +
>       local d f all_files=() missing
>       for d in usr/share/icons/*/; do
>               # gnome2_icon_cache_update updates only themes with an index
> diff --git a/bin/postinst-qa-check.d/50xdg-utils 
> b/bin/postinst-qa-check.d/50xdg-utils
> index 9164f8dc1..9f5ae7cb9 100644
> --- a/bin/postinst-qa-check.d/50xdg-utils
> +++ b/bin/postinst-qa-check.d/50xdg-utils
> @@ -1,6 +1,8 @@
>  # check for missing calls to xdg-utils regen functions
>  
>  xdg_desktop_database_check() {
> +     type -P update-desktop-database &>/dev/null || return
> +
>       local d f missing
>       for d in usr/share/applications; do
>               [[ -d ${d} ]] || continue
> @@ -39,6 +41,8 @@ xdg_desktop_database_check() {
>  }
>  
>  xdg_mimeinfo_database_check() {
> +     type -P update-mime-database &>/dev/null || return
> +
>       local d f missing
>       for d in usr/share/mime; do
>               [[ -d ${d} ]] || continue
> 

Looks good, please merge.
-- 
Thanks,
Zac

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to