[Debian-iot-packaging] [alljoyn-gateway-1504] 03/03: Import Debian patch 15.04~git20160606-2

Thorsten Alteholz alteholz at moszumanska.debian.org
Sun Dec 25 22:16:08 UTC 2016


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

alteholz pushed a commit to branch master
in repository alljoyn-gateway-1504.

commit 0f1025ebe3fdc85f83107c36c59344cedd321ab2
Author: Thorsten Alteholz <debian at alteholz.de>
Date:   Sun Jul 10 15:40:32 2016 +0200

    Import Debian patch 15.04~git20160606-2
---
 debian/alljoyn-gateway-1504.postinst | 8 +++++---
 debian/changelog                     | 6 ++++++
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/debian/alljoyn-gateway-1504.postinst b/debian/alljoyn-gateway-1504.postinst
index 2386a9a..c5dc86a 100644
--- a/debian/alljoyn-gateway-1504.postinst
+++ b/debian/alljoyn-gateway-1504.postinst
@@ -3,9 +3,11 @@
 set -e
 
 if [ "$1" = "configure" ]; then
-  # until all issues are resolved, this package needs
-  # a link from /opt to the correct directory
-  ln -s /usr/lib/alljoyn/opt/alljoyn /opt/alljoyn
+  if [ ! -h /opt/alljoyn ]; then
+    # until all issues are resolved, this package needs
+    # a link from /opt to the correct directory
+    ln -s /usr/lib/alljoyn/opt/alljoyn /opt/alljoyn
+  fi
 fi
 
 #DEBHELPER#
diff --git a/debian/changelog b/debian/changelog
index 26f463a..80fa785 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+alljoyn-gateway-1504 (15.04~git20160606-2) unstable; urgency=medium
+
+  * improve postinst script (Closes: #829148)
+
+ -- Thorsten Alteholz <debian at alteholz.de>  Sun, 10 Jul 2016 15:40:32 +0200
+
 alljoyn-gateway-1504 (15.04~git20160606-1) unstable; urgency=medium
 
   * Initial release (Closes: #827772)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-iot/alljoyn-gateway-1504.git



More information about the Debian-iot-packaging mailing list