Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Zac Medico <zmedico@g.o>
Subject: [gentoo-portage-dev] [PATCH] gnome2-utils postinst: fix false positive for gtk-update-icon-cache (bug 649464)
Date: Sun, 04 Mar 2018 19:08:43
Message-Id: 20180304190607.10326-1-zmedico@gentoo.org
1 For the first install of gtk-update-icon-cache, there's no
2 way to initialize state during preinst, so we have to ignore
3 this package in order to avoid false positives.
4
5 Bug: https://bugs.gentoo.org/649464
6 ---
7 bin/postinst-qa-check.d/50gnome2-utils | 3 +++
8 1 file changed, 3 insertions(+)
9
10 diff --git a/bin/postinst-qa-check.d/50gnome2-utils b/bin/postinst-qa-check.d/50gnome2-utils
11 index dacc19a43..a50df009a 100644
12 --- a/bin/postinst-qa-check.d/50gnome2-utils
13 +++ b/bin/postinst-qa-check.d/50gnome2-utils
14 @@ -39,6 +39,9 @@ gnome2_icon_cache_check() {
15 # parallel-install makes it impossible to blame a specific package
16 has parallel-install ${FEATURES} && return
17
18 + # avoid false-positives on first install (bug 649464)
19 + [[ ${PN} == gtk-update-icon-cache ]] && return
20 +
21 # The eqatag call is prohibitively expensive if the cache is
22 # missing and there are a large number of files.
23 if [[ -z ${missing} && ${all_files[@]} ]]; then
24 --
25 2.13.6