[SCM] vlc/master: Really add a preinst to vlc to drop it's doc directory before unpacking a symlink to vlc-nox's over it.

bdrung at users.alioth.debian.org bdrung at users.alioth.debian.org
Sat Mar 24 00:56:08 UTC 2012


The following commit has been merged in the master branch:
commit 8af7ef1e1bb24899e22afb879d906055ba889f7a
Author: Benjamin Drung <bdrung at debian.org>
Date:   Sat Mar 24 01:31:52 2012 +0100

    Really add a preinst to vlc to drop it's doc directory before unpacking a symlink to vlc-nox's over it.
    
    Thanks: Didier Raboud <odyx at debian.org>
    Closes: #613121, #662217

diff --git a/debian/vlc.preinst b/debian/vlc.preinst
new file mode 100644
index 0000000..56a2c8a
--- /dev/null
+++ b/debian/vlc.preinst
@@ -0,0 +1,14 @@
+#! /bin/sh
+set -e
+
+case "$1" in
+	upgrade)
+		# Make sure /usr/share/doc/vlc doesn't exist or is a symlink
+		# before the unpacking (which will put the link back) - #613121
+		if dpkg --compare-versions "$2" le "2.0.1-2~" && test ! -L "/usr/share/doc/vlc"; then
+			rm -rf /usr/share/doc/vlc/
+		fi
+		;;
+esac
+
+#DEBHELPER#

-- 
VLC media player packaging



More information about the pkg-multimedia-commits mailing list