diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-14 19:15:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-14 19:15:04 +0000 |
commit | acfe2110be5f07ddfdbae94262d8726d3dd71cc9 (patch) | |
tree | 132a3bd6d1ea91b56690f48b6b09a38ee286289e /testsuite | |
parent | Adding upstream version 259. (diff) | |
download | postgresql-common-upstream/260.tar.xz postgresql-common-upstream/260.zip |
Adding upstream version 260.upstream/260
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -3,7 +3,7 @@ # Run integration tests (on the installed packages). # # (C) 2005-2012 Martin Pitt <mpitt@debian.org> -# (C) 2012-2023 Christoph Berg <myon@debian.org> +# (C) 2012-2024 Christoph Berg <myon@debian.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -70,11 +70,21 @@ if [ "${INSTALL:-}" ] && [ -z "${UNSHARED:-}" ]; then [ "$(perl -I. -le 'use PgCommon; print $PgCommon::have_python2')" = "1" ] && PYTHON2_PACKAGE=postgresql-plpython-$v${PG_FLAVOR:=} ;; esac + case $v in + 8.*|9.0) ;; + 9.[1-6]) # plpython3 only for Python < 3.12 + py3ver=$(apt-cache policy python3) + case $py3ver in + *3.[0-9].*|*3.1[01].*) PYTHON3_PACKAGE=postgresql-plpython3-$v${PG_FLAVOR:-} ;; + esac + ;; + *) PYTHON3_PACKAGE=postgresql-plpython3-$v${PG_FLAVOR:-} ;; + esac apt-get install -y \ postgresql-contrib-$v${PG_FLAVOR:=} \ postgresql-plperl-$v$PG_FLAVOR \ ${PYTHON2_PACKAGE:-} \ - $(dpkg --compare-versions $v ge 9.1 && echo postgresql-plpython3-$v$PG_FLAVOR) \ + ${PYTHON3_PACKAGE:-} \ postgresql-pltcl-$v$PG_FLAVOR \ postgresql-server-dev-$v$PG_FLAVOR \ postgresql-doc-$v$PG_FLAVOR |