Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-portage-dev] [PATCH 1/2] Run install-qa-check.d scripts from repositories
Date: Thu, 11 Sep 2014 17:31:32
Message-Id: 1410456683-10843-1-git-send-email-mgorny@gentoo.org
1 ---
2 (following the remaster of install_qa_check())
3 ---
4 bin/misc-functions.sh | 13 +++++++++++++
5 1 file changed, 13 insertions(+)
6
7 diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
8 index d701ba6..bd43360 100755
9 --- a/bin/misc-functions.sh
10 +++ b/bin/misc-functions.sh
11 @@ -182,6 +182,19 @@ install_qa_check() {
12 )
13 done
14
15 + # Run QA checks from repositories
16 + # (yes, PORTAGE_ECLASS_LOCATIONS contains repo paths...)
17 + local repo_location
18 + for repo_location in "${PORTAGE_ECLASS_LOCATIONS[@]}"; do
19 + for f in "${repo_location}"/metadata/install-qa-check.d/*; do
20 + if [[ -f ${f} ]]; then
21 + (
22 + source "${f}" || eerror "Post-install QA check ${f##*/} failed to run"
23 + )
24 + fi
25 + done
26 + done
27 +
28 export STRIP_MASK
29 prepall
30 ___eapi_has_docompress && prepcompress
31 --
32 2.1.0

Replies