public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH 1/2] Run install-qa-check.d scripts from repositories
@ 2014-09-11 17:31 Michał Górny
  2014-09-11 17:31 ` [gentoo-portage-dev] [PATCH 2/2] Allow inheriting utility eclasses in QA checks Michał Górny
  0 siblings, 1 reply; 2+ messages in thread
From: Michał Górny @ 2014-09-11 17:31 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: Michał Górny

---
(following the remaster of install_qa_check())
---
 bin/misc-functions.sh | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index d701ba6..bd43360 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -182,6 +182,19 @@ install_qa_check() {
 		)
 	done
 
+	# Run QA checks from repositories
+	# (yes, PORTAGE_ECLASS_LOCATIONS contains repo paths...)
+	local repo_location
+	for repo_location in "${PORTAGE_ECLASS_LOCATIONS[@]}"; do
+		for f in "${repo_location}"/metadata/install-qa-check.d/*; do
+			if [[ -f ${f} ]]; then
+				(
+					source "${f}" || eerror "Post-install QA check ${f##*/} failed to run"
+				)
+			fi
+		done
+	done
+
 	export STRIP_MASK
 	prepall
 	___eapi_has_docompress && prepcompress
-- 
2.1.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-11 17:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-11 17:31 [gentoo-portage-dev] [PATCH 1/2] Run install-qa-check.d scripts from repositories Michał Górny
2014-09-11 17:31 ` [gentoo-portage-dev] [PATCH 2/2] Allow inheriting utility eclasses in QA checks Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox