[Python-modules-commits] r10212 - in packages/sphinx/trunk/debian (changelog preinst)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Tue Oct 27 09:19:02 UTC 2009


    Date: Tuesday, October 27, 2009 @ 09:18:59
  Author: piotr
Revision: 10212

Add preinst maintainer script to remove python-central leftovers

Added:
  packages/sphinx/trunk/debian/preinst
Modified:
  packages/sphinx/trunk/debian/changelog

Modified: packages/sphinx/trunk/debian/changelog
===================================================================
--- packages/sphinx/trunk/debian/changelog	2009-10-27 00:46:07 UTC (rev 10211)
+++ packages/sphinx/trunk/debian/changelog	2009-10-27 09:18:59 UTC (rev 10212)
@@ -1,3 +1,9 @@
+sphinx (0.6.3-2) UNRELEASED; urgency=low
+
+  * Add preinst maintainer script to remove python-central leftovers
+
+ -- Piotr Ożarowski <piotr at debian.org>  Tue, 27 Oct 2009 10:16:32 +0100
+
 sphinx (0.6.3-1) unstable; urgency=low
 
   * New upstream release (Closes: #545042):

Added: packages/sphinx/trunk/debian/preinst
===================================================================
--- packages/sphinx/trunk/debian/preinst	                        (rev 0)
+++ packages/sphinx/trunk/debian/preinst	2009-10-27 09:18:59 UTC (rev 10212)
@@ -0,0 +1,11 @@
+#!/bin/sh
+# TODO: remove this file after releasing Squeeze
+set -e
+if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt-nl 0.5.2-1~;
+then
+	pycentral pkgremove python-sphinx || true
+	rm -rf /usr/lib/python2.4/site-packages/sphinx/
+	rm -rf /usr/lib/python2.5/site-packages/sphinx/
+fi
+
+#DEBHELPER#




More information about the Python-modules-commits mailing list