On Tue, Sep 23, 2008 at 9:07 AM, Evgeni Golov <[EMAIL PROTECTED]> wrote:
> lsb_release is quick here:
> # time lsb_release -i -s
> Debian
> lsb_release -i -s  0.13s user 0.08s system 80% cpu 0.256 total
>
> and it does for sure not run apt-cache

$ grep apt-cache /usr/bin/lsb_release
# This should really be included in apt-cache policy output... it is already
    policy = commands.getoutput('apt-cache policy 2>/dev/null')

It does run apt-cache on my system and it takes between 2 and 8 seconds.

Torsten

-- 
http://twerner.blogspot.com



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

Reply via email to