r8676 - in /vdr/vdr-plugin-xineliboutput/branches/vdr-1.6/debian: changelog vdr-plugin-xineliboutput.postinst vdr-plugin-xineliboutput.postrm
tiber-guest at users.alioth.debian.org
tiber-guest at users.alioth.debian.org
Tue Jun 8 21:45:09 UTC 2010
Author: tiber-guest
Date: Tue Jun 8 21:45:08 2010
New Revision: 8676
URL: http://svn.debian.org/wsvn/pkg-vdr-dvb/?sc=1&rev=8676
Log:
Fixed postrm bug
Modified:
vdr/vdr-plugin-xineliboutput/branches/vdr-1.6/debian/changelog
vdr/vdr-plugin-xineliboutput/branches/vdr-1.6/debian/vdr-plugin-xineliboutput.postinst
vdr/vdr-plugin-xineliboutput/branches/vdr-1.6/debian/vdr-plugin-xineliboutput.postrm
Modified: vdr/vdr-plugin-xineliboutput/branches/vdr-1.6/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-vdr-dvb/vdr/vdr-plugin-xineliboutput/branches/vdr-1.6/debian/changelog?rev=8676&op=diff
==============================================================================
--- vdr/vdr-plugin-xineliboutput/branches/vdr-1.6/debian/changelog (original)
+++ vdr/vdr-plugin-xineliboutput/branches/vdr-1.6/debian/changelog Tue Jun 8 21:45:08 2010
@@ -1,3 +1,9 @@
+vdr-plugin-xineliboutput (1.0.6~cvs20100502.0851-3) unstable; urgency=low
+
+ * Fixed postrm bug
+
+ -- Tobias Grimm <etobi at debian.org> Tue, 08 Jun 2010 23:44:23 +0200
+
vdr-plugin-xineliboutput (1.0.6~cvs20100502.0851-2) unstable; urgency=low
* Clean up build-depends (Closes: #581978)
Modified: vdr/vdr-plugin-xineliboutput/branches/vdr-1.6/debian/vdr-plugin-xineliboutput.postinst
URL: http://svn.debian.org/wsvn/pkg-vdr-dvb/vdr/vdr-plugin-xineliboutput/branches/vdr-1.6/debian/vdr-plugin-xineliboutput.postinst?rev=8676&op=diff
==============================================================================
--- vdr/vdr-plugin-xineliboutput/branches/vdr-1.6/debian/vdr-plugin-xineliboutput.postinst (original)
+++ vdr/vdr-plugin-xineliboutput/branches/vdr-1.6/debian/vdr-plugin-xineliboutput.postinst Tue Jun 8 21:45:08 2010
@@ -21,9 +21,18 @@
case "$1" in
configure)
chown -R vdr:vdr /var/lib/vdr/plugins/xineliboutput
+
+ allowed_hosts=vdr/plugins/xineliboutput/allowed_hosts.conf
if dpkg --compare-versions "$2" le "1.0.4+cvs20100117.1236-1"; then
grep -v -E '^\s*#|127\.0\.\0\.1|^\s*$' /etc/vdr/svdrphosts.conf \
- >>/etc/vdr/plugins/xineliboutput/allowed_hosts.conf || true
+ >>/etc/$allowed_hosts || true
+ fi
+ #
+ # post rm of previous version might delete the symlink on `postrm upgrade`
+ # due to stupid bug, so try to recreate it if necessary
+ #
+ if [ ! -e /var/lib/$allowed_hosts ] ; then
+ ln -s /etc/$allowed_hosts /var/lib/$allowed_hosts
fi
;;
Modified: vdr/vdr-plugin-xineliboutput/branches/vdr-1.6/debian/vdr-plugin-xineliboutput.postrm
URL: http://svn.debian.org/wsvn/pkg-vdr-dvb/vdr/vdr-plugin-xineliboutput/branches/vdr-1.6/debian/vdr-plugin-xineliboutput.postrm?rev=8676&op=diff
==============================================================================
--- vdr/vdr-plugin-xineliboutput/branches/vdr-1.6/debian/vdr-plugin-xineliboutput.postrm (original)
+++ vdr/vdr-plugin-xineliboutput/branches/vdr-1.6/debian/vdr-plugin-xineliboutput.postrm Tue Jun 8 21:45:08 2010
@@ -19,8 +19,10 @@
case "$1" in
- purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ purge)
rm -rf /var/lib/vdr/plugins/xineliboutput/* || true
+ ;;
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
More information about the pkg-vdr-dvb-changes
mailing list