[vdr] 01/03: Make sure conf.d gets created in plugin preinst, if vdr is not yet installed

Tobias Grimm tiber-guest at moszumanska.debian.org
Sun Sep 6 14:56:48 UTC 2015


This is an automated email from the git hooks/post-receive script.

tiber-guest pushed a commit to annotated tag debian/2.2.0-2_etobi3
in repository vdr.

commit b8ed75222b0fef38da194cb8b525b077c229a7b5
Author: etobi <git at e-tobi.net>
Date:   Sun Sep 6 16:46:09 2015 +0200

    Make sure conf.d gets created in plugin preinst, if vdr is not yet installed
---
 debian/dh-addon-vdrplugin/preinst-vdrplugin-enable | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/dh-addon-vdrplugin/preinst-vdrplugin-enable b/debian/dh-addon-vdrplugin/preinst-vdrplugin-enable
index 9676a33..d6d0619 100644
--- a/debian/dh-addon-vdrplugin/preinst-vdrplugin-enable
+++ b/debian/dh-addon-vdrplugin/preinst-vdrplugin-enable
@@ -17,6 +17,7 @@ dh_vdrplugin_prepare_enable() {
     shift 2
     local old_md5sum="$(dpkg-query -W -f='${Conffiles}' $pkgname | sed -n -e "\' $config ' { s/ obsolete$//; s/.* //; p }")"
     if [ -z "$old_md5sum" ] ; then
+      mkdir -p "/etc/vdr/conf.d"
       touch "/etc/vdr/conf.d/$priority-$config.dpkg-vdrplugin-enable"
     fi
   done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vdr-dvb/vdr.git



More information about the pkg-vdr-dvb-changes mailing list