Package: python-central
Version: 0.5.1
Severity: normal

If the user has changed the symlink to python manually, pyversions may
report malformed version information. For example, if the symlink is
created as ln -s /usr/bin/python2.4 /usr/bin/python, readlink will
return "/usr/bin/python2.4" rather than "python2.4", and pyversions -vd
will report "in/python2.4" rather than "2.4".

Among other things, this means that pycentral will be unable to
determine the default python version and will set it to None, causing a
crash when trying to remove any package (in my case, python-uno) that
uses pycentral.

One quick fix would be to replace [6:] by [-3:] in pyversions lines 76,
86, and 127, or to use os.path.basename.

Thanks,
  Brendan

-- 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.17-1-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-11   An interactive high-level object-o

python-central recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to