[SCM] Debian packaging for swt-gtk. branch, master, updated. debian/3.5.1-2.1-1-g482dc77

Ahmed El-Mahmoudy aelmahmoudy-guest at alioth.debian.org
Mon Sep 13 16:57:32 UTC 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Debian packaging for swt-gtk.".

The branch, master has been updated
       via  482dc779bf64a1df17b722e34ea96e561487cdef (commit)
      from  47c1c875ced4075fe622257a2d313a8f8c1e94bd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 482dc779bf64a1df17b722e34ea96e561487cdef
Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at sabily.org>
Date:   Mon Sep 13 19:52:05 2010 +0300

    Partly revert commit 5516dd3630f733eee080e43bdbd56029cbc24efc
    
    * debian/libswt-gtk-3.5-java.{postinst,prerm}: Use alternatives again,
      this will be needed for major updates (ie: SWT 3.5.x->3.6.x
      transition)
    * debian/libswt-gtk-3.5-java.links: Remove link for /usr/share/java

-----------------------------------------------------------------------

Summary of changes:
 debian/libswt-gtk-3.5-java.links    |    1 -
 debian/libswt-gtk-3.5-java.postinst |   24 ++++++++++++++++++++++++
 debian/libswt-gtk-3.5-java.prerm    |   19 +++++++++++++++++++
 3 files changed, 43 insertions(+), 1 deletions(-)

diff --git a/debian/libswt-gtk-3.5-java.links b/debian/libswt-gtk-3.5-java.links
index 9cf8f76..9fb28fa 100644
--- a/debian/libswt-gtk-3.5-java.links
+++ b/debian/libswt-gtk-3.5-java.links
@@ -1,2 +1 @@
 usr/lib/java/swt-gtk-3.5.1.jar usr/share/java/swt-gtk-3.5.1.jar
-usr/share/java/swt-gtk-3.5.1.jar usr/share/java/swt.jar
diff --git a/debian/libswt-gtk-3.5-java.postinst b/debian/libswt-gtk-3.5-java.postinst
new file mode 100644
index 0000000..a340cff
--- /dev/null
+++ b/debian/libswt-gtk-3.5-java.postinst
@@ -0,0 +1,24 @@
+#! /bin/sh
+set -e
+
+case "$1" in
+    configure)
+        update-alternatives --install \
+                /usr/share/java/swt.jar \
+                swt.jar \
+                /usr/lib/java/swt-gtk-3.5.1.jar \
+                103
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/libswt-gtk-3.5-java.prerm b/debian/libswt-gtk-3.5-java.prerm
new file mode 100644
index 0000000..3696481
--- /dev/null
+++ b/debian/libswt-gtk-3.5-java.prerm
@@ -0,0 +1,19 @@
+#! /bin/sh
+set -e
+
+case "$1" in
+    remove|upgrade|deconfigure)
+		update-alternatives --remove swt.jar \
+                /usr/lib/java/swt-gtk-3.5.1.jar
+	;;
+    failed-upgrade)
+	;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0


hooks/post-receive
-- 
Debian packaging for swt-gtk.



More information about the pkg-java-commits mailing list