Don't run apt-cache if /etc/lsb-release exists.
authorSteve Langasek <steve.langasek@ubuntu.com>
Tue, 21 Feb 2012 15:49:04 +0000 (16:49 +0100)
committerDidier Raboud <odyx@debian.org>
Mon, 27 Feb 2012 12:32:39 +0000 (13:32 +0100)
commit5fd0f7b40830f236b07519818bc525b9d530d9d8
tree1868c1370266c334b4c00df37451db4a622c9783
parent6d330a825c24be97ab0df9c0826fe4681d1c58d1
Don't run apt-cache if /etc/lsb-release exists.

Since /etc/lsb-release overrides detected information, there's no
need to try and detect that information if lsb-release contains
everything we need.  This saves us calling the hugely expensive
apt-cache.
lsb_release.py