postgresql-server-dev-all is rather unhelpful when trying to determine the pg version....
Signed-off-by: Jason Boyer <jboyer@equinoxOLI.org>
# output the name of the currently installed pg server dev package, then
# throw away everything up to and including the last '-' to get the correct pg version
- PGVERS=`dpkg-query --showformat="\\${binary:Package}" --show 'postgresql-server-dev-*'`
+ PGVERS=`dpkg-query --showformat="\\${binary:Package}\\n" --show 'postgresql-server-dev-*' | grep -v postgresql-server-dev-all`
apt-get install postgresql-${PGVERS##*-}-pgtap
echo 'CREATE EXTENSION pgtap;' | su - postgres -c "psql evergreen"