[Pkg-utopia-commits] r1011 - packages/unstable/dbus-python/debian

Sebastian Dröge slomo-guest at costa.debian.org
Mon Sep 11 11:18:04 UTC 2006


Author: slomo-guest
Date: 2006-09-11 11:18:04 +0000 (Mon, 11 Sep 2006)
New Revision: 1011

Added:
   packages/unstable/dbus-python/debian/python-dbus.postinst
Modified:
   packages/unstable/dbus-python/debian/changelog
Log:
* remove stale byte compiled files on upgrade


Modified: packages/unstable/dbus-python/debian/changelog
===================================================================
--- packages/unstable/dbus-python/debian/changelog	2006-09-10 21:57:43 UTC (rev 1010)
+++ packages/unstable/dbus-python/debian/changelog	2006-09-11 11:18:04 UTC (rev 1011)
@@ -1,3 +1,11 @@
+dbus-python (0.71-3) unstable; urgency=low
+
+  * debian/python-dbus.postinst:
+    + Remove stale byte compiled files on upgrade from older versions. These
+      were not deleted because of the switch to pysupport.
+
+ -- Sebastian Dröge <slomo at ubuntu.com>  Mon, 11 Sep 2006 13:16:34 +0200
+
 dbus-python (0.71-2) unstable; urgency=low
 
   [ Sebastian Dröge ]

Added: packages/unstable/dbus-python/debian/python-dbus.postinst
===================================================================
--- packages/unstable/dbus-python/debian/python-dbus.postinst	                        (rev 0)
+++ packages/unstable/dbus-python/debian/python-dbus.postinst	2006-09-11 11:18:04 UTC (rev 1011)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt "0.71-3"; then
+    echo "Remove stale byte-compiled files..."
+    rm -f /usr/lib/python2.4/site-packages/dbus.pyc
+    rm -f /usr/lib/python2.4/site-packages/dbus.pyo
+    rm -f /usr/lib/python2.4/site-packages/dbus/*.pyc
+    rm -f /usr/lib/python2.4/site-packages/dbus/*.pyo
+    test -e /usr/lib/python2.4/site-packages/dbus && rmdir --ignore-fail-on-non-empty /usr/lib/python2.4/site-packages/dbus
+fi
+
+#DEBHELPER#
+




More information about the Pkg-utopia-commits mailing list