Package: debhelper
Version: 7.4.17
Severity: minor
Tags: patch

The current check for default version fails if we use alternatives
method for /usr/bin/python.

-- System Information:
Debian Release: squeeze/sid
  APT prefers sid
  APT policy: (500, 'sid'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debhelper depends on:
ii  binutils                      2.20.1-7   The GNU assembler, linker and bina
ii  dpkg-dev                      1.15.7     Debian package development tools
ii  file                          5.04-2     Determines file type using "magic"
ii  html2text                     1.3.2a-14  advanced HTML to text converter
ii  man-db                        2.5.7-2    on-line manual pager
ii  perl                          5.10.1-12  Larry Wall's Practical Extraction 
ii  perl-base                     5.10.1-12  minimal Perl system
ii  po-debconf                    1.0.16     tool for managing templates file t

debhelper recommends no packages.

Versions of packages debhelper suggests:
pn  dh-make                       <none>     (no description available)

-- no debconf information
--- /usr/bin/dh_pysupport       2010-04-21 00:10:40.000000000 +0600
+++ /tmp/dh_pysupport   2010-04-23 14:28:48.000000000 +0600
@@ -123,8 +123,9 @@
 }
 
 # The current default python version
-my $default=`readlink /usr/bin/python`;
-$default =~ s/^python//;
+my $default=`/usr/bin/python --version 2>&1`;
+$default =~ s/^Python //;
+$default =~ s/\.[0-9]$//;
 chomp $default;
 
 # Versions supported by python-defaults

Reply via email to