Bug#691744: Little coding issues in lsb_release.py script

"[email protected]" <[email protected]>
Newsgroups gmane.linux.debian.devel.lsb
Organization iHMS
Message-ID <508E660A.9060109__8579.05620146102$1351510054$gmane$org@nuxwin.com>
Package: lsb-release
Version: 3.2-23.2squeeze1

Dears maintainers,

I've reinplemented the lsb_release.py script in perl and I've found a little issue in it.

At line 200, you are testing for an alpha string and use the result to match over the 'testing' string

###
if release.rstrip('/sid').lower().isalpha() != 'testing':
###

The result of this test will always be false since you are testing a boolean value against the 'testing' string.

Note: I'm using both Ubuntu and Debian and

Laurent Declercq
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.