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 2/2] postinst-qa-check.d: fix parallel-install to skip QA Noticre
Date: Thu, 26 Oct 2017 17:13:06
Message-Id: 20171026171250.31093-1-zmedico@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH] postinst_qa_check: initialize preinst state (bug 635474) by Zac Medico
1 ---
2 bin/postinst-qa-check.d/50gnome2-utils | 3 +++
3 bin/postinst-qa-check.d/50xdg-utils | 6 ++++++
4 2 files changed, 9 insertions(+)
5
6 diff --git a/bin/postinst-qa-check.d/50gnome2-utils b/bin/postinst-qa-check.d/50gnome2-utils
7 index 80360cf64..dacc19a43 100644
8 --- a/bin/postinst-qa-check.d/50gnome2-utils
9 +++ b/bin/postinst-qa-check.d/50gnome2-utils
10 @@ -36,6 +36,9 @@ gnome2_icon_cache_check() {
11 # preinst initializes the baseline state for the posinst check
12 [[ ${PORTAGE_QA_PHASE} == preinst ]] && return
13
14 + # parallel-install makes it impossible to blame a specific package
15 + has parallel-install ${FEATURES} && return
16 +
17 # The eqatag call is prohibitively expensive if the cache is
18 # missing and there are a large number of files.
19 if [[ -z ${missing} && ${all_files[@]} ]]; then
20 diff --git a/bin/postinst-qa-check.d/50xdg-utils b/bin/postinst-qa-check.d/50xdg-utils
21 index 84f938abd..7094e75a1 100644
22 --- a/bin/postinst-qa-check.d/50xdg-utils
23 +++ b/bin/postinst-qa-check.d/50xdg-utils
24 @@ -32,6 +32,9 @@ xdg_desktop_database_check() {
25 # preinst initializes the baseline state for the posinst check
26 [[ ${PORTAGE_QA_PHASE} == preinst ]] && return
27
28 + # parallel-install makes it impossible to blame a specific package
29 + has parallel-install ${FEATURES} && return
30 +
31 # The eqatag call is prohibitively expensive if the cache is
32 # missing and there are a large number of files.
33 if [[ -z ${missing} && ${all_files[@]} ]]; then
34 @@ -72,6 +75,9 @@ xdg_mimeinfo_database_check() {
35 # preinst initializes the baseline state for the posinst check
36 [[ ${PORTAGE_QA_PHASE} == preinst ]] && return
37
38 + # parallel-install makes it impossible to blame a specific package
39 + has parallel-install ${FEATURES} && return
40 +
41 # The eqatag call is prohibitively expensive if the cache is
42 # missing and there are a large number of files.
43 if [[ -z ${missing} && ${all_files[@]} ]]; then
44 --
45 2.13.5