[Git][debian-gis-team/postgis][alternatives] Remove alternatives before undiverting files

Christoph Berg gitlab at salsa.debian.org
Tue Jul 16 15:03:16 BST 2019



Christoph Berg pushed to branch alternatives at Debian GIS Project / postgis


Commits:
1d026f34 by Christoph Berg at 2019-07-16T14:02:53Z
Remove alternatives before undiverting files

- - - - -


1 changed file:

- debian/postgresql-generic-postgis-scripts.prerm.in


Changes:

=====================================
debian/postgresql-generic-postgis-scripts.prerm.in
=====================================
@@ -7,11 +7,6 @@ MAJOR_VERSION="3"
 
 case $1 in
   remove)
-    for ext in postgis postgis_raster postgis_sfcgal postgis_tiger_geocoder postgis_topology address_standardizer address_standardizer_data_us; do
-      dpkg-divert --package postgresql- at PGVERSION@-postgis-$MAJOR_VERSION-scripts --rename \
-        --remove $DIR/$ext.control
-    done
-
     # remove our alternatives
     update-alternatives --remove postgis.control $DIR/postgis-$MAJOR_VERSION.control
 
@@ -21,6 +16,12 @@ case $1 in
     # are installed, and one of the new versions is removed)
     update-alternatives --remove 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- at PGVERSION@-postgis-$MAJOR_VERSION-scripts --rename \
+        --remove $DIR/$ext.control
+    done
+
     ;;
 esac
 



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

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/postgis/commit/1d026f347bdefcd7cc11c8ed49345e76c721abb9
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/20190716/f06a0ff0/attachment-0001.html>


More information about the Pkg-grass-devel mailing list