Retrieve linux version from lsb_release

May be using "lsb_release" will be more accurate for retrieving version info for Linux instead of fetching from /etc/someone_release? For example, for Ubuntu, tkabber shows 'Debian GNU/Linux testing/unstable'.

$ lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 6.06.1 LTS
Release: 6.06
Codename: dapper

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

lsb_release?

kostix@localhost:kostix$ lsb_release
bash: lsb_release: command not found
kostix@localhost:kostix$ uname -o
GNU/Linux

probably add /etc/lsb-release?

It turned out, that lsb_release is a python-script, which gathers this info from /etc/lsb-release. So may be add this file for checking version of Linux distro for addition to /etc/someone_version?

(example for ubuntu)
j2a@moby:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=6.06
DISTRIB_CODENAME=dapper
DISTRIB_DESCRIPTION="Ubuntu 6.06.1 LTS"

(example for debian)
j2a@rtr:~$ cat /etc/lsb-release
DISTRIB_ID=Debian
DISTRIB_RELEASE=3.1
DISTRIB_CODENAME=sarge
DISTRIB_DESCRIPTION="Debian GNU/Linux"

kostix@proxysrv:kostix$ cat

kostix@proxysrv:kostix$ cat /etc/lsb_release
cat: /etc/lsb_release: No such file or directory

ибо в моём дебиане у неё
Priority: extra

Хотя, смотреть туда, если файл есть, наверное, не помешает.

Patch is ready

The patch is submitted and available at http://www.jabber.ru/bugzilla/show_bug.cgi?id=284

Whoever wants this patch to go to the trunk, send expensive goodies and kudos to the Tkabber maintainers. :)

cool, it is in trunk

Thanks a lot. This patch in trunk since r794 (19.11.2006).

Syndicate content