[SCM] vlc/master: Remove obsolete conffiles.

bdrung at users.alioth.debian.org bdrung at users.alioth.debian.org
Wed Nov 20 23:31:21 UTC 2013


The following commit has been merged in the master branch:
commit 41e9c32a5403bf434cf313cdee1d5f8cfc18150f
Author: Benjamin Drung <bdrung at debian.org>
Date:   Mon Nov 18 21:46:19 2013 +0100

    Remove obsolete conffiles.
    
    Closes: #703750

diff --git a/debian/vlc-data.maintscript b/debian/vlc-data.maintscript
new file mode 100644
index 0000000..f8126ba
--- /dev/null
+++ b/debian/vlc-data.maintscript
@@ -0,0 +1,2 @@
+rm_conffile /etc/vlc/lua/http/dialogs/.hosts 2.1.1
+rm_conffile /etc/vlc/lua/http/.hosts 2.1.1
diff --git a/debian/vlc-data.postinst b/debian/vlc-data.postinst
new file mode 100644
index 0000000..0a3d0eb
--- /dev/null
+++ b/debian/vlc-data.postinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+#DEBHELPER#
+
+case "$1" in
+	configure)
+		# Remove empty /etc/vlc directory (to work around bug #584185).
+		if dpkg --compare-versions "$2" le "2.1.1" && test -d "/etc/vlc"; then
+			rmdir --ignore-fail-on-non-empty /etc/vlc/lua/http/dialogs /etc/vlc/lua/http /etc/vlc/lua /etc/vlc
+		fi
+		;;
+esac

-- 
VLC media player packaging



More information about the pkg-multimedia-commits mailing list