From: Peter Rabbitson Date: Mon, 10 Feb 2014 08:48:11 +0000 (+0100) Subject: Fix travis prereq extractor (not sure how this ever worked...) X-Git-Tag: v0.082800~238 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=777447e927d828478debc4e011aa2f28707bc008;p=dbsrgits%2FDBIx-Class.git Fix travis prereq extractor (not sure how this ever worked...) --- diff --git a/maint/travis-ci_scripts/common.bash b/maint/travis-ci_scripts/common.bash index 7df71d1..d50aebb 100755 --- a/maint/travis-ci_scripts/common.bash +++ b/maint/travis-ci_scripts/common.bash @@ -58,7 +58,7 @@ extract_prereqs() { || LASTEXIT=$? OUT=${COMBINED_OUT#*!!!STDERRSTDOUTSEPARATOR!!!} - ERR=$(grep -v " is up to date." <<< "${COMBINED_OUT%!!!STDERRSTDOUTSEPARATOR!!!*}") + ERR=${COMBINED_OUT%!!!STDERRSTDOUTSEPARATOR!!!*} if [[ "$LASTEXIT" != "0" ]] ; then echo_err "Error occured (exit code $LASTEXIT) retrieving dependencies of $@:" @@ -67,8 +67,14 @@ extract_prereqs() { exit 1 fi - # throw away warnings, ascii art, convert to modnames - PQ=$(perl -p -e 's/^\!.*//; s/^[^a-z]+//i; s/\-[^\-]+$/ /; s/\-/::/g' <<< "$OUT") + # throw away warnings, up-to-date diag, ascii art, convert to modnames + PQ=$(perl -p -e ' + s/^.*?is up to date.*$//; + s/^\!.*//; + s/^[^a-z]+//i; + s/\-[^\-]+$/ /; # strip version part + s/\-/::/g + ' <<< "$OUT") # throw away what was in $@ for m in "$@" ; do