[Python-modules-commits] r8798 - in packages/logilab-astng/trunk/debian (2 files)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Wed Jun 17 20:50:28 UTC 2009


    Date: Wednesday, June 17, 2009 @ 20:50:26
  Author: morph
Revision: 8798

* debian/python-logilab-astng.preinst
  - added to remove leftover files after migration to python-support; thanks
    to Helmut Grohne and Yaroslav Halchenko for the reports; Closes: #533282,
    #528458
* urgency=medium because it fixes RC bugs 

Added:
  packages/logilab-astng/trunk/debian/python-logilab-astng.preinst
Modified:
  packages/logilab-astng/trunk/debian/changelog

Modified: packages/logilab-astng/trunk/debian/changelog
===================================================================
--- packages/logilab-astng/trunk/debian/changelog	2009-06-17 18:25:53 UTC (rev 8797)
+++ packages/logilab-astng/trunk/debian/changelog	2009-06-17 20:50:26 UTC (rev 8798)
@@ -1,5 +1,13 @@
-logilab-astng (0.19.0-2) UNRELEASED; urgency=low
+logilab-astng (0.19.0-2) UNRELEASED; urgency=medium
 
+  [ Sandro Tosi ]
+  * debian/python-logilab-astng.preinst
+    - added to remove leftover files after migration to python-support; thanks
+      to Helmut Grohne and Yaroslav Halchenko for the reports; Closes: #533282,
+      #528458
+  * urgency=medium because it fixes RC bugs 
+
+  [ Julien Lavergne ]
   * From Ubuntu, prepare for the future python transition,
     thanks Alessio Treglia for the patch (Closes: #530607)
    - debian/rules: 
@@ -9,7 +17,7 @@
     + Bump build-depends to python (>= 2.5.4-1~)
     + Bump build-depends to debhelper (>= 5.0.38)
 
- -- Julien Lavergne <julien.lavergne at gmail.com>  Sun, 31 May 2009 18:07:51 +0200
+ -- Sandro Tosi <morph at debian.org>  Wed, 17 Jun 2009 22:49:33 +0200
 
 logilab-astng (0.19.0-1) unstable; urgency=low
 

Added: packages/logilab-astng/trunk/debian/python-logilab-astng.preinst
===================================================================
--- packages/logilab-astng/trunk/debian/python-logilab-astng.preinst	                        (rev 0)
+++ packages/logilab-astng/trunk/debian/python-logilab-astng.preinst	2009-06-17 20:50:26 UTC (rev 8798)
@@ -0,0 +1,24 @@
+#!/bin/sh
+# TODO: remove this file after releasing Squeeze
+set -e
+
+PYCENTRAL=/usr/bin/pycentral
+
+if [ "$1" = upgrade ]
+then
+       if dpkg --compare-versions "$2" lt 0.17.4-2 ; then
+	   if [ -x $PYCENTRAL ]; then
+               # explicitly remove old python-central files
+               pycentral pkgremove python-logilab-astng
+	   fi
+	   # be really sure also removing left-over files and dirs
+	   for pyversion in 2.4 2.5; do
+                if [ -d /usr/lib/python$pyversion/site-packages/logilab/astng/ ]; then
+                    rm -f /usr/lib/python$pyversion/site-packages/logilab/astng/*
+                    rmdir --ignore-fail-on-non-empty /usr/lib/python$pyversion/site-packages/logilab/astng/
+                fi
+            done
+       fi
+fi
+
+#DEBHELPER#




More information about the Python-modules-commits mailing list