conditional remove of libpq5 libpq-dev in Makefile
authorJason Etheridge <jason@esilibrary.com>
Fri, 19 Aug 2011 16:20:19 +0000 (12:20 -0400)
committerDan Scott <dan@coffeecode.net>
Wed, 7 Sep 2011 18:55:22 +0000 (14:55 -0400)
In Makefile.install for the install_pgsql_client_debs_90 target.  Only
do it if version 8 of libpq-dev is installed.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/extras/Makefile.install

index bb69740..666e556 100644 (file)
@@ -401,7 +401,7 @@ install_debs:
 # conflict with the 9.0 versions - so remove them, install the pinned
 # backports of 9.0, then reinstall the apache2-prefork-dev package
 install_pgsql_client_debs_90:
-       $(APT_TOOL) remove libpq5 libpq-dev
+       if [ `$(APT_TOOL) versions libpq-dev | grep ^i|sed 's/^i[ \t]*//'|cut -d. -f1` -eq 8 ]; then $(APT_TOOL) remove libpq5 libpq-dev ; fi
        $(APT_BACKPORT_TOOL) install $(PGSQL_CLIENT_DEBS_90)
        $(APT_TOOL) install apache2-prefork-dev