Older dists don't have tzdata-legacy
authorChristoph Berg <myon@debian.org>
Tue, 8 Aug 2023 09:48:22 +0000 (11:48 +0200)
committerChristoph Berg <myon@debian.org>
Tue, 8 Aug 2023 09:48:22 +0000 (11:48 +0200)
jenkins/generate-pgdg-source

index 0a5f2b9784296a30990950a67d56285f2bb46434..4a51820eeb425a924acc0df66c9c2dc9c94701c3 100755 (executable)
@@ -155,6 +155,17 @@ case $PACKAGE in
     esac
     ;;
 esac
+case $PACKAGE in
+  postgresql-[89].?|postgresql-1[1-9]|postgresql-1[1-9]ee)
+    case $distribution in
+      bookworm|bullseye|buster|kinetic|jammy|focal) # do not have tzdata-legacy yet
+        sed -i -e '/tzdata-legacy/d' \
+               debian/control debian/tests/control
+        TWEAK+=("Remove tzdata-legacy from test dependencies.")
+        ;;
+    esac
+    ;;
+esac
 case $PACKAGE in
   postgresql-[89].?|postgresql-1[01])
     case $distribution in buster|stretch|jessie|disco|bionic|xenial)