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

dottedmag at users.alioth.debian.org dottedmag at users.alioth.debian.org
Thu Jun 24 13:31:14 UTC 2010


    Date: Thursday, June 24, 2010 @ 13:31:08
  Author: dottedmag
Revision: 13592

Fix preinst script to correctly remove python-central remnants (Closes: #559572)

Modified:
  packages/sphinx/trunk/debian/preinst

Modified: packages/sphinx/trunk/debian/preinst
===================================================================
--- packages/sphinx/trunk/debian/preinst	2010-06-24 09:30:45 UTC (rev 13591)
+++ packages/sphinx/trunk/debian/preinst	2010-06-24 13:31:08 UTC (rev 13592)
@@ -1,11 +1,10 @@
 #!/bin/sh
 # TODO: remove this file after releasing Squeeze
 set -e
-if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt-nl 0.5.2-1~;
+if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt-nl 1.0~b1-2~;
 then
 	pycentral pkgremove python-sphinx || true
-	rm -rf /usr/lib/python2.4/site-packages/sphinx/
-	rm -rf /usr/lib/python2.5/site-packages/sphinx/
+	rm -rf /usr/lib/python2.*/*-packages/sphinx/
 fi
 
 #DEBHELPER#




More information about the Python-modules-commits mailing list