commit:     5d47213d87c7797b5bb66142089d15fa583af8bb
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  8 17:59:07 2014 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sun Jun  8 17:59:07 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=5d47213d

tinderbox: remove blank lines from eselect profile output.

There was an issue where using a profile from an overlay causes
eselect to print an extra blank line.

---
 tinderbox/bashrc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tinderbox/bashrc b/tinderbox/bashrc
index 121f20e..c7cc6f2 100644
--- a/tinderbox/bashrc
+++ b/tinderbox/bashrc
@@ -69,7 +69,7 @@ BUILD_DATA_DIR="${PACKAGE_DATA_DIR}/${PF}/$(uuidgen)"
 tinderbox_setup_common() {
        SANDBOX_ON=0 mkdir -p "${BUILD_DATA_DIR}" > /dev/null
        write_data arch ${ARCH}
-       write_data profile $(eselect profile show | tail -1)
+       write_data profile $(eselect profile show | grep -v "^[[:space:]]*$" | 
tail -1)
        write_data timestamp $(date --utc "+%F %T %Z")
 }
 

Reply via email to