[SCM] openni/master: postinst: register modules only upon fresh install

jspricke-guest at users.alioth.debian.org jspricke-guest at users.alioth.debian.org
Sat Nov 22 13:22:42 UTC 2014


The following commit has been merged in the master branch:
commit 4e59542b6748fe546ee722fd3aca2650057d79a2
Author: Jochen Sprickerhof <git at jochen.sprickerhof.de>
Date:   Sat Nov 22 14:22:14 2014 +0100

    postinst: register modules only upon fresh install

diff --git a/debian/libopenni0.postinst b/debian/libopenni0.postinst
index 8bb557e..d14b251 100644
--- a/debian/libopenni0.postinst
+++ b/debian/libopenni0.postinst
@@ -14,7 +14,9 @@ case "$1" in
     if [ -n "$2" ] && dpkg --compare-versions "$2" lt-nl "1.5.4.0-8"; then
       mv /var/lib/ni/licenses.xml.dpkg-old /var/lib/ni/licenses.xml
       mv /var/lib/ni/modules.xml.dpkg-old /var/lib/ni/modules.xml
-    else
+    fi
+    # Only register upon fresh install
+    if [ -z "$2" ]; then
       niLicense PrimeSense 0KOIk2JeIBYClPWVnMoRKn5cdY4=
       for module in $MODULES; do
         niReg -r $MODULE_DIR/$module /etc/openni

-- 
openni packaging



More information about the pkg-multimedia-commits mailing list