Subject: python-central: prevens postinst on python2.3 and python2.4
Package: python-central
Version: 0.4.16
Severity: grave
Justification: renders package unusable
Tags: patch

*** Please type your report below this line ***

The set_default_runtime_from_version_info() function
in /usr/bin/pycentral treats the versions as list.
In fact, pyversions.requested_versions() returns a Set.
As a result, the whole thing throws an exception at version[0].

Here's one way to fix it:
========
--- /usr/bin/pycentral.orig     2006-06-15 17:53:51.000000000 -0700
+++ /usr/bin/pycentral  2006-06-15 17:51:25.000000000 -0700
@@ -568,7 +568,7 @@
             self.version_info = pyversions.parse_versions(self.version_field)
 
     def set_default_runtime_from_version_info(self):
-        versions = pyversions.requested_versions(self.version_field, 
version_only=True)
+        versions = list(pyversions.requested_versions(self.version_field, 
version_only=True))
         if not versions:
             raise PyCentralError, "no matching runtime for `%s'" % 
self.version_field
         if len(versions) == 1:
========

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

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

python-central recommends no packages.

-- no debconf information

-- 
Alexander Roitman   http://www.gramps-project.org

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to