Package: python-central
Version: 0.6.14
Severity: critical
Tags: patch
File: /usr/bin/pycentral

Hi. I declared it critical as it makes other packages fail to
configuration.  The SyntaxError is caused by a missing closing
parenthesis in line 2111 of /usr/bin/pycentral, here is the patch:

$ diff -u /usr/bin/pycentral-orig /usr/bin/pycentral
--- /usr/bin/pycentral-orig     2009-12-02 17:01:45.000000000 +0100
+++ /usr/bin/pycentral  2009-12-03 16:52:03.000000000 +0100
@@ -2108,7 +2108,7 @@
     elif len(matching_actions) > 1:
         usage(sys.stderr,
               "ambiguous action `%s', matching actions: %s"
-              % (action_name, str(list(matching_actions)))
+              % (action_name, str(list(matching_actions))))
     else:
         action_name = matching_actions[0]

And the problem in action:

# apt-get upgrade
[...]
Preparing to replace python-wxgtk2.8 2.8.7.1-2+b1 (using 
.../python-wxgtk2.8_2.8.10.1-1_i386.deb) ...
  File "/usr/bin/pycentral", line 2112
    else:
       ^
SyntaxError: invalid syntax
dpkg: warning: old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
  File "/usr/bin/pycentral", line 2112
    else:
       ^
SyntaxError: invalid syntax
dpkg: error processing 
/var/cache/apt/archives/python-wxgtk2.8_2.8.10.1-1_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
update-alternatives: using /usr/lib/wx/python/wx2.8.pth to provide 
/usr/lib/wx/python/wx.pth (wx.pth) in auto mode.
  File "/usr/bin/pycentral", line 2112
    else:
       ^
SyntaxError: invalid syntax
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/python-wxgtk2.8_2.8.10.1-1_i386.deb
mount: /usr is busy
E: Sub-process /usr/bin/dpkg returned an error code (1)



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.31-1-686 (SMP w/1 CPU core)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-central depends on:
ii  python                        2.5.4-2    An interactive high-level object-o

python-central recommends no packages.

python-central suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to