Package: python-central
Version: 0.6.16+nmu1
Severity: important

Whereas many Debian packages rely on Python and

Whereas such packages may rely on *python-central* to check for a supported
Python version and

Whereas the stability of such packages depends on periodic, automated updates
and

Whereas the stability of Debian Linux as a whole depends upon such packages and

Whereas the check for the installed Debian default version of Python fails
subsequent to *update-alternatives* even when the alternative selected is the
current approved and acceptable version and

Whereas *update-alternatives* is currently supported and

Whereas *update-alternatives* is a component of *dpkg*, which is currently
supported, and

Whereas *update-alternatives* is a time-honored technique for selecting Python
versions and

Whereas this technique is widely discussed in the documentation for *dpkg* and
on the popular help sites for Debian and downstream distributions and has been
for years and

Whereas this technique is not deprecated and

Whereas suppressing this technique would be impractical given the vast folklore
behind it and

Whereas a trivial change to *python-central* avails to allow *update-
alternatives* to be used to choose between valid default versions of Python and

Whereas this might answer many Debian bugs including #571231 against python-
gst0.10, #485393 and #551141 against python-central, and #573315 against
Python2.6 and

Whereas it might also answer a vastly greater number of questions on the
popular help sites for Debian and dowstream distributions and

Whereas *python-central* already accommodates one level of indirection in that
/usr/bin/python may be a symbolic link and

Whereas accommodating only the one more level of indirection through
/etc/alternatives that *update-alternatives* introduces is not a computational
burden

Now, therefore, I humbly suggest that this change be made.



-- System Information:
Debian Release: 6.0.6
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-central depends on:
ii  python                  2.6.6-3+squeeze7 interactive high-level object-orie

python-central recommends no packages.

python-central suggests no packages.

--- /usr/share/pycentral-data/pyversions.py~    2012-10-08 23:23:59.000000000
-0500
+++ /usr/share/pycentral-data/pyversions.py     2012-10-09 00:11:42.000000000
-0500
@@ -148,7 +148,9 @@
     global _default_version
     if not _default_version:
         try:
-            _default_version = link = os.readlink('/usr/bin/python')
+            _default_version = os.readlink('/usr/bin/python')
+            if os.path.islink(_default_version):
+                _default_version = os.readlink(_default_version)
         except OSError:
             _default_version = None
             try:


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

Reply via email to