Package: pychecker
Version: 0.8.14-5
Severity: normal

I received the following error:

        Setting up pychecker (0.8.14-5) ...
        /var/lib/dpkg/info/pychecker.postinst: line 45:
        /usr/bin//etc/alternatives/python: No such file or directory

Line 29 of pychecker.postinst has a comment that is not true:

        PYTHON=`readlink /usr/bin/${i}`  # note: returns basename

It returns the value of the symbolic link which may point to another directory.
Two examples follow:

 $ ls -l /usr/bin/gcc /usr/bin/mailq
 lrwxrwxrwx  1 root root  7 Jan 12 15:13 /usr/bin/gcc -> gcc-3.3
 lrwxrwxrwx  1 root root 16 Feb 28 08:44 /usr/bin/mailq -> ../sbin/sendmail
 $ readlink /usr/bin/gcc
 gcc-3.3
 $ readlink /usr/bin/mailq
 ../sbin/sendmail

Because I set up the following:

update-alternatives --install /usr/bin/python python /usr/bin/python2.1 20
update-alternatives --install /usr/bin/python python /usr/bin/python2.2 20
update-alternatives --install /usr/bin/python python /usr/bin/python2.3 20

the result of a readlink is

        $ readlink /usr/bin/python
        /etc/alternatives/python

So I added the following code to finish the installation:

if [ "`dirname ${PYTHON}`" = "/etc/alternatives" ]
then
        PYTHON=`readlink ${PYTHON}`
        PYTHON=`basename ${PYTHON}`
fi

Please let me know if I can be of further assistance.

Carlos Hanson


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.2.26-ech-20041117
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages pychecker depends on:
ii  python                       2.3.5-1     An interactive high-level object-o
ii  python2.2                    2.2.3dfsg-1 An interactive high-level object-o
ii  python2.3                    2.3.5-1     An interactive high-level object-o

-- no debconf information


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

Reply via email to