X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2Ftravis-ci_scripts%2Fcommon.bash;h=d50aebb439a9bd97b5aca2f419981c6f47368851;hb=777447e927d828478debc4e011aa2f28707bc008;hp=7df71d1b0cdefac50b9af2c2e6f7d2965f932a83;hpb=23905f5f4ff8fd15ae70e213165bfe6aa84d862f;p=dbsrgits%2FDBIx-Class.git 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