[Python-modules-team] Bug#521564: python-cairo: Uninstallable (at least when using cowbuilder)

Julien Valroff julien at kirya.net
Sat Mar 28 14:28:42 UTC 2009


package python-cairo
tags 521564 + tags
thanks

Le samedi 28 mars 2009 à 15:18 +0100, Julien Valroff a écrit :
> Unpacking python-cairo (from .../python-cairo_1.8.4-2_amd64.deb) ...
> pycentral: pycentral pkgremove: package python-cairo is not installed
> pycentral pkgremove: package python-cairo is not installed
> dpkg: error processing /var/cache/apt/archives/python-cairo_1.8.4-2_amd64.deb (--unpack):
>  subprocess pre-installation script returned error exit status 1
[...]

I guess the following patch should solve the issue:

--- debian/python-cairo.preinst.orig	2009-03-28 15:20:31.000000000 +0100
+++ debian/python-cairo.preinst	2009-03-28 15:20:36.000000000 +0100
@@ -5,7 +5,7 @@
 PYCENTRAL=/usr/bin/pycentral
 
 case "$1" in
-    install|upgrade)
+    upgrade)
         if dpkg --compare-versions "$2" lt 1.8.4-2; then
             if [ -x $PYCENTRAL ]; then
                 # explicitly remove old python-central files

Cheers,
Julien

-- 
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org

Rejoignez maintenant plus de 4 500 personnes, associations, entreprises
et collectivités qui soutiennent notre action






More information about the Python-modules-team mailing list