[SCM] vlc/experimental: Remove plugins.dat only in postrm

sramacher at users.alioth.debian.org sramacher at users.alioth.debian.org
Sat Dec 20 23:50:07 UTC 2014


The following commit has been merged in the experimental branch:
commit f94687fff6a79d88ae520d7d32ff4f2df1ba9f29
Author: Sebastian Ramacher <sramacher at debian.org>
Date:   Sun Nov 16 00:29:32 2014 +0100

    Remove plugins.dat only in postrm
    
    Git-Dch: Ignore

diff --git a/debian/vlc-nox.postrm b/debian/vlc-nox.postrm
new file mode 100644
index 0000000..9deb2bb
--- /dev/null
+++ b/debian/vlc-nox.postrm
@@ -0,0 +1,9 @@
+#! /bin/sh
+set -e
+
+#DEBHELPER#
+
+if [ -d /usr/lib/vlc/plugins ] ; then
+  rm -f /usr/lib/vlc/plugins/plugins.dat
+  rmdir -p --ignore-fail-on-non-empty /usr/lib/vlc/plugins
+fi
diff --git a/debian/vlc-nox.prerm b/debian/vlc-nox.prerm
deleted file mode 100644
index a12c5b0..0000000
--- a/debian/vlc-nox.prerm
+++ /dev/null
@@ -1,7 +0,0 @@
-#! /bin/sh
-set -e
-
-rm -f /usr/lib/vlc/plugins/plugins-*
-rm -f /usr/lib/vlc/plugins/plugins.dat
-
-#DEBHELPER#

-- 
VLC media player packaging



More information about the pkg-multimedia-commits mailing list