[SCM] kinfocenter packaging branch, master, updated. debian/5.3.2-1-13-g7a0602f

Maximiliano Curia maxy at moszumanska.debian.org
Fri Sep 4 09:16:03 UTC 2015


Gitweb-URL: http://git.debian.org/?p=pkg-kde/plasma/kinfocenter.git;a=commitdiff;h=c75e73b

The following commit has been merged in the master branch:
commit c75e73b9c2cd71b5a85c1a01d515f6f0959afc1f
Author: Maximiliano Curia <maxy at gnuservers.com.ar>
Date:   Fri Sep 4 01:11:45 2015 +0200

    Change permissions once, and check before regenerating the file with the post inst.
---
 debian/kinfocenter.postinst | 5 +++--
 debian/rules                | 4 ++++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/kinfocenter.postinst b/debian/kinfocenter.postinst
index 82b34c0..0cb2cf7 100644
--- a/debian/kinfocenter.postinst
+++ b/debian/kinfocenter.postinst
@@ -5,8 +5,9 @@ set -e
 BASEDIR=/var/lib/ieee-data/
 
 if [ "configure" = "$1" ]; then
-    chmod 755 /var/lib/ieee-data/update.d/kinfocenter_oui.sh
-    /var/lib/ieee-data/update.d/kinfocenter_oui.sh "${BASEDIR}" "${BASEDIR}oui.txt"
+    if ! [ -f "${BASEDIR}kinfocenter_oui.db" ]; then
+        /var/lib/ieee-data/update.d/kinfocenter_oui.sh "${BASEDIR}" "${BASEDIR}oui.txt"
+    fi
 fi
 
 #DEBHELPER#
diff --git a/debian/rules b/debian/rules
index 1e70c6d..f91bce2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,3 +13,7 @@ override_dh_install:
 	rm debian/tmp/usr/share/kcmview1394/oui.db
 	rm debian/tmp/usr/share/kcmusb/usb.ids
 	$(overridden_command)
+
+override_dh_fixperms:
+	$(overridden_command)
+	chmod 755 debian/kinfocenter/var/lib/ieee-data/update.d/kinfocenter_oui.sh

-- 
kinfocenter packaging



More information about the pkg-kde-commits mailing list