# The MIT License
#
# Copyright (c) 2011,2012 by Michael Prokop <mika@debian.org>
-# Copyright (c) 2012-2023 by Christoph Berg <myon@debian.org>
+# Copyright (c) 2012-2024 by Christoph Berg <myon@debian.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
esac
;;
esac
+case $PACKAGE in
+ postgresql-9.[1-6])
+ case $distribution in noble)
+ # remove binary from .dsc so autopkgtest doesn't see it (package still needs -Pnopython to build)
+ perl -i -000 -ne "print unless /^Package: postgresql-plpython3/m" debian/control
+ TWEAK+=("Disable plpython3 package, incompatible with Python 3.12.")
+ ;;
+ esac
+ ;;
+esac
case $PACKAGE in
postgresql-8.?|postgresql-9.?|postgresql-[1-7]?)
case $distribution in bookworm|bullseye|buster|jammy|focal)