commit:     0d75a363355ad7b19e4f7ddbfa62e600c75f42ce
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  4 19:02:52 2018 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Fri Mar 16 09:26:23 2018 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=0d75a363

gnome2-utils postinst: fix false positive for gtk-update-icon-cache (bug 649464)

For the first install of gtk-update-icon-cache, there's no
way to initialize state during preinst, so we have to ignore
this package in order to avoid false positives.

Bug: https://bugs.gentoo.org/649464

 bin/postinst-qa-check.d/50gnome2-utils | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bin/postinst-qa-check.d/50gnome2-utils 
b/bin/postinst-qa-check.d/50gnome2-utils
index dacc19a43..a50df009a 100644
--- a/bin/postinst-qa-check.d/50gnome2-utils
+++ b/bin/postinst-qa-check.d/50gnome2-utils
@@ -39,6 +39,9 @@ gnome2_icon_cache_check() {
        # parallel-install makes it impossible to blame a specific package
        has parallel-install ${FEATURES} && return
 
+       # avoid false-positives on first install (bug 649464)
+       [[ ${PN} == gtk-update-icon-cache ]] && return
+
        # 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

Reply via email to