[SCM] libdvd-pkg/master: fix preconfigure error
onlyjob at users.alioth.debian.org
onlyjob at users.alioth.debian.org
Fri Sep 13 05:09:06 UTC 2013
The following commit has been merged in the master branch:
commit 6191db564fcde6e113a6a65fc98804ac9a41c0d0
Author: Dmitry Smirnov <onlyjob at member.fsf.org>
Date: Fri Sep 13 13:03:40 2013 +1000
fix preconfigure error
diff --git a/debian/config b/debian/config
index e8b9863..80baab1 100644
--- a/debian/config
+++ b/debian/config
@@ -1,7 +1,11 @@
#!/bin/sh
set -e
-. /usr/lib/libdvd-pkg/VARS
+# In preconfigure stage (like when package is being installed for the first
+# time) "VARS" do not exist in which case we just exit to avoid error.
+[ -s /usr/lib/libdvd-pkg/VARS ] \
+&& . /usr/lib/libdvd-pkg/VARS \
+|| exit 0
# Source debconf library.
. /usr/share/debconf/confmodule
--
libdvdcss-pkg packaging
More information about the pkg-multimedia-commits
mailing list