[Git][debian-gis-team/postgis][experimental] Remove debian/postgresql-generic-postgis-scripts.preinst.in.

Bas Couwenberg gitlab at salsa.debian.org
Sun May 17 15:11:17 BST 2020



Bas Couwenberg pushed to branch experimental at Debian GIS Project / postgis


Commits:
20c9d537 by Christoph Berg at 2020-05-17T16:11:05+02:00
Remove debian/postgresql-generic-postgis-scripts.preinst.in.

Obsolete, and it was buggy with older dpkg-diversions which didn't have --no-rename yet.

dpkg-divert: error: unknown option --no-rename
dpkg: error processing archive /tmp/apt-dpkg-install-XJfvh3/31-postgresql-12-postgis-3-scripts_3.0.1+dfsg-2.pgdg18.04+1_all.deb

Reported by Regina Obe.

- - - - -


3 changed files:

- debian/changelog
- − debian/postgresql-generic-postgis-scripts.preinst.in
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+postgis (3.1.0~alpha1+dfsg-1~exp5) UNRELEASED; urgency=medium
+
+  * Remove debian/postgresql-generic-postgis-scripts.preinst.in.
+    Obsolete, and it was buggy with older dpkg-diversions which didn't have
+    --no-rename yet.
+
+ -- Christoph Berg <myon at debian.org>  Sun, 17 May 2020 15:51:36 +0200
+
 postgis (3.1.0~alpha1+dfsg-1~exp4) experimental; urgency=medium
 
   * Add patch to fix test failure with PROJ 7.0.1.


=====================================
debian/postgresql-generic-postgis-scripts.preinst.in deleted
=====================================
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-set -eu
-
-MAJOR_VERSION="3"
-PGVERSION="@PGVERSION@"
-DIR="/usr/share/postgresql/$PGVERSION/extension"
-
-# Some early 3.0 versions had a mechanism to divert the control files of older
-# PostGIS versions away. This has been removed because it was too fragile.
-
-if [ "${2:-}" ] &&
-  dpkg --compare-versions "$2" ge "3.0.0~alpha4+dfsg-2~exp1~" &&
-  dpkg --compare-versions "$2" lt "3.0.0~rc2+dfsg-1~exp2~"; then
-
-  # remove alternatives for older versions
-  update-alternatives --remove postgresql-$PGVERSION-postgis.control $DIR/postgis-old.control
-
-  # move any diverted files back
-  for ext in postgis postgis_raster postgis_sfcgal postgis_tiger_geocoder postgis_topology address_standardizer address_standardizer_data_us; do
-    dpkg-divert --package postgresql-$PGVERSION-postgis-$MAJOR_VERSION-scripts --no-rename \
-      --remove $DIR/$ext.control
-    rm -vf $DIR/$ext-old.control
-  done
-fi
-
-#DEBHELPER#
-
-exit 0


=====================================
debian/rules
=====================================
@@ -105,7 +105,6 @@ override_dh_auto_clean: debian/control
 	rm -f $(CURDIR)/debian/postgresql-*-postgis-*.install
 	rm -f $(CURDIR)/debian/postgresql-*-postgis-*-scripts.install
 	rm -f $(CURDIR)/debian/postgresql-*-postgis-*-scripts.postinst
-	rm -f $(CURDIR)/debian/postgresql-*-postgis-*-scripts.preinst
 	rm -f $(CURDIR)/debian/postgresql-*-postgis-*-scripts.prerm
 	rm -f loader/cunit/cu_tester
 	rm -rf liblwgeom/cunit/.libs
@@ -142,7 +141,7 @@ override_dh_auto_build:
 #	Create debhelper files for each Postgres major version
 	(set -ex; \
 	for PGVER in $(OTHER_POSTGRES_VERSIONS) $(NEWEST_POSTGRES_VERSION); do \
-		for SUFFIX in .install -scripts.install -scripts.postinst -scripts.preinst -scripts.prerm; do \
+		for SUFFIX in .install -scripts.install -scripts.postinst -scripts.prerm; do \
 			cat $(CURDIR)/debian/postgresql-generic-postgis$$SUFFIX.in \
 				| sed -e "s/@PGVERSION@/$$PGVER/g" \
 				> $(CURDIR)/debian/postgresql-$$PGVER-postgis-$(MAJOR_VERSION)$$SUFFIX; \



View it on GitLab: https://salsa.debian.org/debian-gis-team/postgis/-/commit/20c9d537133c44164387d3c78de47812b0ca9d6a

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/postgis/-/commit/20c9d537133c44164387d3c78de47812b0ca9d6a
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20200517/3fa88189/attachment-0001.html>


More information about the Pkg-grass-devel mailing list