1 |
commit: a45a9a05f80e157f6d4af8904a4c72e465e9a9d9 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 11 16:56:18 2014 +0000 |
4 |
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
5 |
CommitDate: Fri Sep 26 01:22:13 2014 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=a45a9a05 |
7 |
|
8 |
Run install-qa-check.d scripts from repositories |
9 |
|
10 |
--- |
11 |
(following the remaster of install_qa_check()) |
12 |
|
13 |
--- |
14 |
bin/misc-functions.sh | 13 +++++++++++++ |
15 |
1 file changed, 13 insertions(+) |
16 |
|
17 |
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh |
18 |
index d701ba6..bd43360 100755 |
19 |
--- a/bin/misc-functions.sh |
20 |
+++ b/bin/misc-functions.sh |
21 |
@@ -182,6 +182,19 @@ install_qa_check() { |
22 |
) |
23 |
done |
24 |
|
25 |
+ # Run QA checks from repositories |
26 |
+ # (yes, PORTAGE_ECLASS_LOCATIONS contains repo paths...) |
27 |
+ local repo_location |
28 |
+ for repo_location in "${PORTAGE_ECLASS_LOCATIONS[@]}"; do |
29 |
+ for f in "${repo_location}"/metadata/install-qa-check.d/*; do |
30 |
+ if [[ -f ${f} ]]; then |
31 |
+ ( |
32 |
+ source "${f}" || eerror "Post-install QA check ${f##*/} failed to run" |
33 |
+ ) |
34 |
+ fi |
35 |
+ done |
36 |
+ done |
37 |
+ |
38 |
export STRIP_MASK |
39 |
prepall |
40 |
___eapi_has_docompress && prepcompress |