This occurs if /usr/bin/python is a symbolic link whose target is an
absolute path, not just "python2.x". It's not on my system, but
apparently it can be.

Another, related, issue is that update-alternatives may make
/usr/bin/python a link to /etc/alternatives/python, which, in turn, is a
link to /usr/bin/python2.x. The original function does not cater for
such circumstances.

I believe the attached patch fixes both issues, but I haven't tested it
(beyond verifying that the results are as correct as before on my own
box).

** Attachment added: "suggested fix"
   http://librarian.launchpad.net/7038480/defaultversion.patch

-- 
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

Reply via email to