Bug#499825: another solution

2008-09-23 Thread Torsten Werner
On Tue, Sep 23, 2008 at 9:56 AM, Evgeni Golov <[EMAIL PROTECTED]> wrote: > Anyways, why is apt-cache policy as root faster than as user? My first > test was as root, now I tested as a user and I got 2-3s delay :( It seems to be fast if /var/cache/apt/pkgcache.bin is up to date and it can update th

Bug#499825: another solution

2008-09-23 Thread Evgeni Golov
On Tue, 23 Sep 2008 09:40:47 +0200 Torsten Werner wrote: > 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

Bug#499825: another solution

2008-09-23 Thread Torsten Werner
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

Bug#499825: another solution

2008-09-23 Thread Evgeni Golov
Oh, now I saw that should be a fix for #491388... 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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subjec

Bug#499825: another solution

2008-09-22 Thread Evgeni Golov
Hey, why not just use DISTRO=$(lsb_release -i -s); Thats shorter, better readable, and works as expected ;) Regards Evgeni -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]