Public bug reported:
Binary package hint: python-central
On Ubuntu 6.10 running pyversions -vd should return '2.4' but it returns
'in/python2.4'
this also affects post-install configurations with pycentral.
the pyversions.py script is installed in two locations and two versions (!?):
/usr/share/pycentral-data/pyversions.py
/usr/share/python/pyversions.py
Both can be fixed this way:
* search location of this text:
def default_version(version_only=False):
global _default_version
if not _default_version:
_default_version = link = os.readlink('/usr/bin/python')
if version_only:
return _default_version[6:]
else:
return _default_version
* replace the line:
return _default_version[6:]
* with this line:
return _default_version.split('python')[-1]
Is this the right place to post this bugreport/fix? This was my first
one.
** Affects: python-central (Ubuntu)
Importance: Undecided
Status: Unconfirmed
--
pyversions.py generates wrong output with version_only option
https://launchpad.net/bugs/92287
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs