xinit: Changes to 'debian-unstable'
debian/changelog | 6 ++++++
debian/xinit.postinst | 31 +++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+)
New commits:
commit a8e678a1d5a18d47f57d97546ce8a377ce5852be
Author: Laurent Bigonville <bigon@bigon.be>
Date: Mon Oct 19 01:28:38 2015 +0200
Make /etc/X11/xinit/xinitrc on upgrade too (Closes: #790433)
diff --git a/debian/changelog b/debian/changelog
index f11e7b0..f67b851 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+xinit (1.3.4-2) UNRELEASED; urgency=medium
+
+ * Make /etc/X11/xinit/xinitrc on upgrade too (Closes: #790433)
+
+ -- Laurent Bigonville <bigon@debian.org> Mon, 19 Oct 2015 01:27:14 +0200
+
xinit (1.3.4-1) unstable; urgency=medium
* Team upload.
diff --git a/debian/xinit.postinst b/debian/xinit.postinst
new file mode 100644
index 0000000..e0d08f6
--- /dev/null
+++ b/debian/xinit.postinst
@@ -0,0 +1,31 @@
+#!/bin/sh
+# postinst script for xinit
+#
+# see: dh_installdeb(1)
+
+set -e
+
+case "$1" in
+ configure)
+ if dpkg --compare-versions "$2" lt-nl "1.3.4-2~"; then
+ if ! dpkg-statoverride --list /etc/X11/xinit/xinitrc >/dev/null 2>&1; then
+ chmod 0755 /etc/X11/xinit/xinitrc
+ fi
+ fi
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
Reply to: