[Python-modules-commits] r7833 - in packages/python-formencode/trunk/debian (3 files)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Mon Mar 9 23:21:40 UTC 2009


    Date: Monday, March 9, 2009 @ 23:21:39
  Author: piotr
Revision: 7833

* Add debian/preinst to clean after python-central (Closes: #518490)
* Remove Section from binary staza
* Remove dh_python call from debian/rules

Added:
  packages/python-formencode/trunk/debian/preinst
Modified:
  packages/python-formencode/trunk/debian/changelog
  packages/python-formencode/trunk/debian/control

Modified: packages/python-formencode/trunk/debian/changelog
===================================================================
--- packages/python-formencode/trunk/debian/changelog	2009-03-09 22:12:30 UTC (rev 7832)
+++ packages/python-formencode/trunk/debian/changelog	2009-03-09 23:21:39 UTC (rev 7833)
@@ -2,8 +2,11 @@
 
   * New upstream release
   * Convert to python-support
+  * Add debian/preinst to clean after python-central (Closes: #518490)
+  * Remove Section from binary staza
+  * Remove dh_python call from debian/rules
 
- -- Piotr Ożarowski <piotr at debian.org>  Thu, 05 Mar 2009 23:47:28 +0100
+ -- Piotr Ożarowski <piotr at debian.org>  Mon, 09 Mar 2009 22:56:44 +0100
 
 python-formencode (1.2.1-2) unstable; urgency=low
 

Modified: packages/python-formencode/trunk/debian/control
===================================================================
--- packages/python-formencode/trunk/debian/control	2009-03-09 22:12:30 UTC (rev 7832)
+++ packages/python-formencode/trunk/debian/control	2009-03-09 23:21:39 UTC (rev 7833)
@@ -13,7 +13,6 @@
 
 Package: python-formencode
 Architecture: all
-Section: python
 Depends: ${python:Depends}, ${misc:Depends}, python-dns, python-pkg-resources,
  python (>= 2.5) | python-elementtree
 Suggests: python-egenix-mxdatetime

Added: packages/python-formencode/trunk/debian/preinst
===================================================================
--- packages/python-formencode/trunk/debian/preinst	                        (rev 0)
+++ packages/python-formencode/trunk/debian/preinst	2009-03-09 23:21:39 UTC (rev 7833)
@@ -0,0 +1,14 @@
+#!/bin/sh
+# TODO: remove this file after releasing Squeeze
+set -e
+if [ "$1" = upgrade ]
+then
+	if dpkg --compare-versions "$2" lt 1.1-1; then
+		pycentral pkgremove python-formencode
+	elif dpkg --compare-versions "$2" lt 1.2.2-1; then
+		pycentral pkgremove python-formencode
+		# pycentral will not remove files that were moved in 1.1-1
+		rm -rf /usr/lib/python2.4/site-packages/formencode/
+		rm -rf /usr/lib/python2.5/site-packages/formencode/
+	fi
+fi




More information about the Python-modules-commits mailing list