[SCM] vdr-plugin-streamdev packaging repository branch, master, updated. debian/0.5.1+git20111211+git20120325-2-4-gcbebdb7

etobi git at e-tobi.net
Wed May 30 23:31:01 UTC 2012


The following commit has been merged in the master branch:
commit cbebdb75ddd9f5a2cb5aa53dd1d32bde821462f8
Author: etobi <git at e-tobi.net>
Date:   Wed May 30 20:24:52 2012 +0200

    Drop diversions left over form versions prior to 0.5.0-1 (Closes: #656366)

diff --git a/debian/changelog b/debian/changelog
index 1a6d46d..eb02dee 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 vdr-plugin-streamdev (0.6.0-1) unstable; urgency=low
 
   * New upstream release
+  * Drop diversions left over form versions prior to 0.5.0-1 (Closes: #656366)
 
  -- Tobias Grimm <etobi at debian.org>  Wed, 30 May 2012 18:34:19 +0200
 
diff --git a/debian/vdr-plugin-streamdev-client.preinst b/debian/vdr-plugin-streamdev-client.preinst
new file mode 100644
index 0000000..91531ce
--- /dev/null
+++ b/debian/vdr-plugin-streamdev-client.preinst
@@ -0,0 +1,15 @@
+#! /bin/sh
+set -e
+
+#
+# Drop diversions of locale files when upgrading from versions prior to 0.5.0-1
+#
+if [ "$1" = "install" -o "$1" = "upgrade" ]; then
+    if dpkg --compare-versions "$2" lt "0.5.0-1"; then
+        for lang in de_DE fi_FI fr_FR it_IT ru_RU sk_SK; do
+            dpkg-divert --package vdr-plugin-streamdev-client --rename --remove /usr/share/locale/$lang/LC_MESSAGES/vdr-streamdev.mo
+        done
+    fi
+fi
+
+#DEBHELPER#

-- 
vdr-plugin-streamdev packaging repository



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