[plplot] 01/01: Convert symlinks from old packages to directories on upgrade

Ole Streicher olebole at moszumanska.debian.org
Sat Sep 16 10:11:44 UTC 2017


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

olebole pushed a commit to branch master
in repository plplot.

commit 282a82e9878265225772eef87155a1681c562e19
Author: Ole Streicher <olebole at debian.org>
Date:   Sat Sep 16 11:30:49 2017 +0200

    Convert symlinks from old packages to directories on upgrade
    
    Closes: #875911, #875913
---
 debian/control                  | 4 ++++
 debian/libplplot-java.postinst  | 9 +++++++++
 debian/libplplot-java.preinst   | 9 +++++++++
 debian/libplplot-java.prerm     | 9 +++++++++
 debian/libplplot-lua.postinst   | 9 +++++++++
 debian/libplplot-lua.preinst    | 9 +++++++++
 debian/libplplot-lua.prerm      | 9 +++++++++
 debian/libqsastime-dev.postinst | 9 +++++++++
 debian/libqsastime-dev.preinst  | 9 +++++++++
 debian/libqsastime-dev.prerm    | 9 +++++++++
 debian/plplot-tcl.postinst      | 9 +++++++++
 debian/plplot-tcl.preinst       | 9 +++++++++
 debian/plplot-tcl.prerm         | 9 +++++++++
 13 files changed, 112 insertions(+)

diff --git a/debian/control b/debian/control
index ce6240e..eae9a4b 100644
--- a/debian/control
+++ b/debian/control
@@ -170,6 +170,7 @@ Conflicts: libplplot9-java
 Replaces: libplplot9-java
 Depends: ${misc:Depends},
          ${shlibs:Depends}
+Pre-Depends: ${misc:Pre-Depends}
 Description: Scientific plotting library (Java bindings)
  PLplot is relatively small, portable, freely distributable, and is rich
  enough to satisfy most users.  It has a wide range of plot types including
@@ -236,6 +237,7 @@ Multi-Arch: same
 Depends: libqsastime0 (= ${binary:Version}),
          ${misc:Depends},
          ${shlibs:Depends}
+Pre-Depends: ${misc:Pre-Depends}
 Description: Time format conversion library (development files)
  The qsastime library is a simple library for handling time format
  conversion. It overcomes the limitations of the POSIX time handling
@@ -312,6 +314,7 @@ Depends: iwidgets4,
          plplot-driver-xwin,
          ${misc:Depends},
          ${shlibs:Depends}
+Pre-Depends: ${misc:Pre-Depends}
 Description: Tcl/Tk support for PLplot, a plotting library
  PLplot is relatively small, portable, freely distributable, and is rich
  enough to satisfy most users.  It has a wide range of plot types including
@@ -628,6 +631,7 @@ Multi-Arch: same
 Depends: lua5.1,
          ${misc:Depends},
          ${shlibs:Depends}
+Pre-Depends: ${misc:Pre-Depends}
 Description: Scientific plotting library (Lua bindings)
  PLplot is relatively small, portable, freely distributable, and is rich
  enough to satisfy most users.  It has a wide range of plot types including
diff --git a/debian/libplplot-java.postinst b/debian/libplplot-java.postinst
new file mode 100644
index 0000000..8b69ed3
--- /dev/null
+++ b/debian/libplplot-java.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper symlink_to_dir \
+  /usr/share/doc/libplplot-java libplplot12
+  5.10.0+dfsg2-0.4 libplplot12 -- "$@"
+
+#DEBHELPER#
diff --git a/debian/libplplot-java.preinst b/debian/libplplot-java.preinst
new file mode 100644
index 0000000..8b69ed3
--- /dev/null
+++ b/debian/libplplot-java.preinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper symlink_to_dir \
+  /usr/share/doc/libplplot-java libplplot12
+  5.10.0+dfsg2-0.4 libplplot12 -- "$@"
+
+#DEBHELPER#
diff --git a/debian/libplplot-java.prerm b/debian/libplplot-java.prerm
new file mode 100644
index 0000000..8b69ed3
--- /dev/null
+++ b/debian/libplplot-java.prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper symlink_to_dir \
+  /usr/share/doc/libplplot-java libplplot12
+  5.10.0+dfsg2-0.4 libplplot12 -- "$@"
+
+#DEBHELPER#
diff --git a/debian/libplplot-lua.postinst b/debian/libplplot-lua.postinst
new file mode 100644
index 0000000..181896f
--- /dev/null
+++ b/debian/libplplot-lua.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper symlink_to_dir \
+  /usr/share/doc/libplplot-lua libplplot12
+  5.10.0+dfsg2-0.4 libplplot12 -- "$@"
+
+#DEBHELPER#
diff --git a/debian/libplplot-lua.preinst b/debian/libplplot-lua.preinst
new file mode 100644
index 0000000..181896f
--- /dev/null
+++ b/debian/libplplot-lua.preinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper symlink_to_dir \
+  /usr/share/doc/libplplot-lua libplplot12
+  5.10.0+dfsg2-0.4 libplplot12 -- "$@"
+
+#DEBHELPER#
diff --git a/debian/libplplot-lua.prerm b/debian/libplplot-lua.prerm
new file mode 100644
index 0000000..181896f
--- /dev/null
+++ b/debian/libplplot-lua.prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper symlink_to_dir \
+  /usr/share/doc/libplplot-lua libplplot12
+  5.10.0+dfsg2-0.4 libplplot12 -- "$@"
+
+#DEBHELPER#
diff --git a/debian/libqsastime-dev.postinst b/debian/libqsastime-dev.postinst
new file mode 100644
index 0000000..4054875
--- /dev/null
+++ b/debian/libqsastime-dev.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper symlink_to_dir \
+  /usr/share/doc/libqsastime-dev libqsastime0 \
+  5.10.0+dfsg2-0.4 libqsastime0 -- "$@"
+
+#DEBHELPER#
diff --git a/debian/libqsastime-dev.preinst b/debian/libqsastime-dev.preinst
new file mode 100644
index 0000000..4054875
--- /dev/null
+++ b/debian/libqsastime-dev.preinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper symlink_to_dir \
+  /usr/share/doc/libqsastime-dev libqsastime0 \
+  5.10.0+dfsg2-0.4 libqsastime0 -- "$@"
+
+#DEBHELPER#
diff --git a/debian/libqsastime-dev.prerm b/debian/libqsastime-dev.prerm
new file mode 100644
index 0000000..4054875
--- /dev/null
+++ b/debian/libqsastime-dev.prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper symlink_to_dir \
+  /usr/share/doc/libqsastime-dev libqsastime0 \
+  5.10.0+dfsg2-0.4 libqsastime0 -- "$@"
+
+#DEBHELPER#
diff --git a/debian/plplot-tcl.postinst b/debian/plplot-tcl.postinst
new file mode 100644
index 0000000..fa4099b
--- /dev/null
+++ b/debian/plplot-tcl.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper symlink_to_dir \
+  /usr/share/doc/plplot-tcl libplplot12
+  5.10.0+dfsg2-0.4 libplplot12 -- "$@"
+
+#DEBHELPER#
diff --git a/debian/plplot-tcl.preinst b/debian/plplot-tcl.preinst
new file mode 100644
index 0000000..fa4099b
--- /dev/null
+++ b/debian/plplot-tcl.preinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper symlink_to_dir \
+  /usr/share/doc/plplot-tcl libplplot12
+  5.10.0+dfsg2-0.4 libplplot12 -- "$@"
+
+#DEBHELPER#
diff --git a/debian/plplot-tcl.prerm b/debian/plplot-tcl.prerm
new file mode 100644
index 0000000..fa4099b
--- /dev/null
+++ b/debian/plplot-tcl.prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper symlink_to_dir \
+  /usr/share/doc/plplot-tcl libplplot12
+  5.10.0+dfsg2-0.4 libplplot12 -- "$@"
+
+#DEBHELPER#

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



More information about the debian-science-commits mailing list