commit: 76a9695a24d9337758b93d489d0b1a5bae2dedad Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org> AuthorDate: Tue Feb 12 05:56:50 2019 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Tue Feb 12 23:35:52 2019 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=76a9695a
{pre,post}inst-qa-check.d/50xdg-utils: gnome2_icon_cache_update -> xdg_icon_cache_update Bug: https://bugs.gentoo.org/677776 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org> Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> bin/postinst-qa-check.d/50xdg-utils | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/postinst-qa-check.d/50xdg-utils b/bin/postinst-qa-check.d/50xdg-utils index 9945cc336..9a7c036e6 100644 --- a/bin/postinst-qa-check.d/50xdg-utils +++ b/bin/postinst-qa-check.d/50xdg-utils @@ -46,12 +46,12 @@ xdg_desktop_database_check() { fi } -gnome2_icon_cache_check() { +xdg_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 + # xdg_icon_cache_update updates only themes with an index [[ -f ${d}/index.theme ]] || continue local files=() find_args=( @@ -91,10 +91,10 @@ gnome2_icon_cache_check() { # The eqatag call is prohibitively expensive if the cache is # missing and there are a large number of files. if [[ -z ${missing} && ${all_files[@]} ]]; then - eqawarn "QA Notice: new icons were found installed but GTK+ icon cache" + eqawarn "QA Notice: new icons were found installed but icon cache" eqawarn "has not been updated:" - eqatag -v gnome2-utils.icon-cache "${all_files[@]/#//}" - eqawarn "Please make sure to call gnome2_icon_cache_update()" + eqatag -v xdg-utils.icon-cache "${all_files[@]/#//}" + eqawarn "Please make sure to call xdg_icon_cache_update()" eqawarn "in pkg_postinst() and pkg_postrm() phases of appropriate pkgs." fi } @@ -145,7 +145,7 @@ xdg_mimeinfo_database_check() { xdg_utils_postinst_check() { cd "${EROOT:-/}" || die xdg_desktop_database_check - gnome2_icon_cache_check + xdg_icon_cache_check xdg_mimeinfo_database_check }