Bug#342330: dput: postinst scrpit doesn't detect correctly python version
Package: dput Version: 0.9.2.21 Severity: normal Tags: patch I need to add this to make postinst script working: PYTHON_BIN=$(readlink /usr/bin/python) PYTHON=$(echo $PYTHON_BIN | cut -d '/' -f 4) Else $PYTHON give '/usr/bin/python2.4' instead of 'python2.4' -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.14-2-686 Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Versions of packages dput depends on: ii debconf [debconf-2.0] 1.4.62 Debian configuration management sy ii gnupg 1.4.2-2GNU privacy guard - a free PGP rep ii python2.3.5-3An interactive high-level object-o dput recommends no packages. -- debconf information: dput/config-file-format: -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#342330: dput: postinst scrpit doesn't detect correctly python version
Hi, thank you for your interest in dput and your bug report. Encolpe DEGOUTE wrote: I need to add this to make postinst script working: [...] Else $PYTHON give '/usr/bin/python2.4' instead of 'python2.4' Where did you get that link from? I agree it's an error, but if this is the default link of the python installation, it'd more urgent... I have half a mind to compute and insert the default python version at build-time with something like the below, Christian, do you have any objections? PYTHONVERSION=$(shell python -c 'import sys; print %d.%d%(sys.version_info[:2$ Kind regards T. -- Thomas Viehmann, http://thomas.viehmann.net/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#342330: dput: postinst scrpit doesn't detect correctly python version
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas Viehmann a écrit : | Hi, | | thank you for your interest in dput and your bug report. | | Encolpe DEGOUTE wrote: | |I need to add this to make postinst script working: | | [...] | |Else $PYTHON give '/usr/bin/python2.4' instead of 'python2.4' | | | Where did you get that link from? I agree it's an error, but if this is | the default link of the python installation, it'd more urgent... It's a default unstable installation upgraded since six months: [EMAIL PROTECTED]:~$ ls -lh /usr/bin/python lrwxrwxrwx 1 root root 18 2005-10-19 17:07 /usr/bin/python - /usr/bin/python2.4 I don't know what script configure this. It's not update-alternatives like python.preinst said. | I have half a mind to compute and insert the default python version at | build-time with something like the below, Christian, do you have any | objections? | PYTHONVERSION=$(python -c 'import sys; print %d.%d%(sys.version_info[:2])') That's a better fix than mine. Regards, - -- Encolpe DEGOUTE http://encolpe.degoute.free.fr/ Logiciels libres, hockey sur glace et autres activités cérébrales -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDluK/vFPzBBlIZMMRAlG0AJ4xgdHTtrBMbbbXuuWBSkq+P9eyFwCfUYHd jxDDIBfxQzBxSKvFQbJKAYU= =VtWs -END PGP SIGNATURE-