[SCM] vlc/experimental: Make sure that plugins.dat exists if only vlc-nox is installed

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 4ccd5183ecb91071513ceff5bebc0161ce77bd77
Author: Sebastian Ramacher <sramacher at debian.org>
Date:   Sun Nov 16 00:29:46 2014 +0100

    Make sure that plugins.dat exists if only vlc-nox is installed

diff --git a/debian/vlc-nox.postinst b/debian/vlc-nox.postinst
index ad43a67..845c344 100644
--- a/debian/vlc-nox.postinst
+++ b/debian/vlc-nox.postinst
@@ -1,11 +1,24 @@
 #!/bin/sh
 set -e
 
-if [ "$1" = "triggered" ] ; then
+run_vlc_cache_gen() {
     if ! /usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins ; then
-      echo "WARNING: Regenerating VLC plugin cache failed."
-      echo "Please run 'vlc-cache-gen -f /usr/lib/vlc/plugins' manually."
+        echo "WARNING: Regenerating VLC plugin cache failed."
+        echo "Please run 'vlc-cache-gen -f /usr/lib/vlc/plugins' manually."
     fi
-fi
+}
+
+case "$1" in
+    triggered)
+        run_vlc_cache_gen
+        exit 0
+        ;;
+
+    configure)
+        # Make sure that the plugins cache is generated if only vlc-nox is
+        # installed.
+        dpkg-trigger /usr/lib/vlc/plugins
+        ;;
+esac
 
 #DEBHELPER#

-- 
VLC media player packaging



More information about the pkg-multimedia-commits mailing list