diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | 2019-02-12 06:56:50 +0100 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2019-02-12 15:35:52 -0800 |
commit | 76a9695a24d9337758b93d489d0b1a5bae2dedad (patch) | |
tree | 051c8dfc832226e9cdabf09d8d3a8660d4a7a7a9 /bin/postinst-qa-check.d | |
parent | {pre,post}inst-qa-check.d: Move gnome2_icon_cache_check() from 50gnome2-utils... (diff) | |
download | portage-76a9695a24d9337758b93d489d0b1a5bae2dedad.tar.gz portage-76a9695a24d9337758b93d489d0b1a5bae2dedad.tar.bz2 portage-76a9695a24d9337758b93d489d0b1a5bae2dedad.zip |
{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@Apache.Org>
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'bin/postinst-qa-check.d')
-rw-r--r-- | bin/postinst-qa-check.d/50xdg-utils | 12 |
1 files 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 } |