generate-pgdg-source: Try pg_buildext before debian/rules debian/control
authorChristoph Berg <myon@debian.org>
Mon, 18 Sep 2023 10:53:05 +0000 (12:53 +0200)
committerChristoph Berg <myon@debian.org>
Mon, 18 Sep 2023 10:53:05 +0000 (12:53 +0200)
jenkins/generate-pgdg-source

index 617b1f77005e8eec4d7648b33925808eff6c901d..6e6b1f19ced8a2a8008a13a2a37cca3c9a731401 100755 (executable)
@@ -316,15 +316,15 @@ EOT
 mv debian/changelog.tmp debian/changelog
 sed -ne '1,/^ --/p' debian/changelog
 
-if ! [ -f debian/control ] ; then
-  make -f debian/rules debian/control
-fi
 if [ -f debian/control.in ]; then
   case $PACKAGE in
     postgis|postgis-2.5) debian/rules debian/control ;; # has its own update rule
     *) pg_buildext checkcontrol ;;
   esac
 fi
+if ! [ -f debian/control ] ; then
+  make -f debian/rules debian/control
+fi
 
 # build source package and move it to 'result' for archiving
 echo "$VERSION_STRING" > ../version.txt