[slepc] 03/03: remove alternatives links on dev package removal

Drew Parsons dparsons at moszumanska.debian.org
Thu Apr 7 14:25:04 UTC 2016


This is an automated email from the git hooks/post-receive script.

dparsons pushed a commit to tag debian/3.6.3.dfsg1-2
in repository slepc.

commit 60e028a339b09497081f6428bff5dd99d379ad7e
Author: Drew Parsons <dparsons at debian.org>
Date:   Thu Apr 7 21:24:29 2016 +0800

    remove alternatives links on dev package removal
    
    - libslepc_real.so (package libslepc3.6.3-dev)
    - libslepc_complex.so (package libslepc-complex-3.6.3-dev)
---
 debian/changelog                        | 9 ++++++---
 debian/libslepc-complex-3.6.3-dev.prerm | 1 +
 debian/libslepc3.6.3-dev.prerm          | 1 +
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 54e436e..56ed976 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,11 @@
 slepc (3.6.3.dfsg1-2) unstable; urgency=medium
 
-  * Remove alternatives link for libslepc_real.so.3.6 when
-    package libslepc3.6.3 is removed. Likewise libslepc_complex.so.3.6
-    (package libslepc-complex-3.6.3). Closes: #820283.
+  * Remove alternatives link when packages are removed.
+    - libslepc_real.so.3.6 (package libslepc3.6.3)
+    - libslepc_complex.so.3.6 (package libslepc-complex-3.6.3)
+    - libslepc_real.so (package libslepc3.6.3-dev)
+    - libslepc_complex.so (package libslepc-complex-3.6.3-dev) 
+    Closes: #820283.
 
  -- Drew Parsons <dparsons at debian.org>  Thu, 07 Apr 2016 20:21:51 +0800
 
diff --git a/debian/libslepc-complex-3.6.3-dev.prerm b/debian/libslepc-complex-3.6.3-dev.prerm
index a573dc1..1cc68df 100644
--- a/debian/libslepc-complex-3.6.3-dev.prerm
+++ b/debian/libslepc-complex-3.6.3-dev.prerm
@@ -9,6 +9,7 @@ SLEPC_COMPLEX_ARCH=${SLEPC_ARCH}-complex
 # Remove alternatives links
 if [ "$1" = "remove" ]; then
   update-alternatives --remove slepc /usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_COMPLEX_ARCH}
+  update-alternatives --remove libslepc_complex.so /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_complex.so.${SLEPC_VERSION}
 fi
 
 #DEBHELPER#
diff --git a/debian/libslepc3.6.3-dev.prerm b/debian/libslepc3.6.3-dev.prerm
index 0e2b604..a1a7487 100644
--- a/debian/libslepc3.6.3-dev.prerm
+++ b/debian/libslepc3.6.3-dev.prerm
@@ -9,6 +9,7 @@ SLEPC_REAL_ARCH=${SLEPC_ARCH}-real
 # Remove alternatives links
 if [ "$1" = "remove" ]; then
   update-alternatives --remove slepc /usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_REAL_ARCH}
+  update-alternatives --remove libslepc_real.so /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so.${SLEPC_VERSION}
 fi
 
 #DEBHELPER#

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/slepc.git



More information about the debian-science-commits mailing list