Source: postgresql-server-dev-all
Version: 103
Severity: normal
Tags: patch

Dear Maintainer,

pg_buildext produces no output and makes no action if the list returned from 
/usr/share/postgresql-common/supported-versions ends on something
which is not in $srcdir/debian/pgversions

`set -e' traps a failure in VERSIONS=`versions`, where versions() returned 
non-zero because of `grep -q' failure to find the last item.

Please see the patch.


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
--- /usr/bin/pg_buildext.old	2012-05-30 18:41:03.000000000 +0000
+++ /usr/bin/pg_buildext	2012-05-30 18:16:30.000000000 +0000
@@ -70,6 +70,7 @@
     do
 	grep -q "^$v" $srcdir/debian/pgversions && echo $v
     done
+    :
 }
 
 [ "$srcdir" ] || die "syntax: pg_buildext <action> <srcdir> ..."

Reply via email to