diff options
author | 2010-08-10 01:31:10 +0200 | |
---|---|---|
committer | 2010-08-10 01:31:10 +0200 | |
commit | 43b948f700fa10a24972739ff3a08fea3250e273 (patch) | |
tree | 3d144979c2004d95c8dde2026350048d5436577a /bashrc | |
parent | Even better output for metadata. (diff) | |
download | flameeyes-tinderbox-43b948f700fa10a24972739ff3a08fea3250e273.tar.gz flameeyes-tinderbox-43b948f700fa10a24972739ff3a08fea3250e273.tar.bz2 flameeyes-tinderbox-43b948f700fa10a24972739ff3a08fea3250e273.zip |
Print metadata info on end both for success and failure.
Diffstat (limited to 'bashrc')
-rwxr-xr-x | bashrc | 23 |
1 files changed, 15 insertions, 8 deletions
@@ -4,6 +4,17 @@ dent_me() { echo "$@" | bti --host "${BTI_HOST}" --account "${BTI_ACCOUNT}" --password "${BTI_PASSWORD}" >/dev/null } +metadata_print() { + ebegin "Gentoo contact information" + xmlstarlet sel \ + -t -o 'herds:' -n \ + -m -o " " '/pkgmetadata/herd' -v . -n \ + -t -o 'maintainers:' -n \ + -m -o " " '/pkgmetadata/maintainer' -v email -n \ + "${PORTDIR}/${CATEGORY}/${PN}/metadata.xml" + +} + pre_pkg_setup() { dent_me "${CATEGORY}/${PF} merge starting" @@ -23,12 +34,16 @@ tinderbox_stats() { tinderbox_success() { dent_me "${CATEGORY}/${PF} merge #succeded$(tinderbox_stats)" + + metadata_print } tinderbox_mask_pkg() { [[ ${EBUILD_PHASE} == test ]] && return 0 dent_me "${CATEGORY}/${PF} merge #failed$(tinderbox_stats)" SANDBOX_ON=0 sed -i -e "\$a =${CATEGORY}/${PF}" /etc/portage/package.mask/currentrun + + metadata_print } tinderbox_if_file() { @@ -101,14 +116,6 @@ post_src_install() { tinderbox_if_file Notice tinderbox-scanelf-insecure.log "Insecure functions used" tinderbox_if_file Notice tinderbox-setXid-binaries.log "setXid files found" - ebegin "Gentoo contact information" - xmlstarlet sel \ - -t -o 'herds:' -n \ - -m -o " " '/pkgmetadata/herd' -v . -n \ - -t -o 'maintainers:' -n \ - -m -o " " '/pkgmetadata/maintainer' -v email -n \ - "${PORTDIR}/${CATEGORY}/${PN}/metadata.xml" - lafilefixer "${D}" } |