]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
setup: when detecting platform, ask the Python Standard Library's platform.dist(...
authorZooko O'Whielacronx <zooko@zooko.com>
Wed, 24 Sep 2008 18:09:22 +0000 (11:09 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Wed, 24 Sep 2008 18:09:22 +0000 (11:09 -0700)
commit7339e09c725d2ba5ad81470956b5fed251d05c1f
tree6239611f625b010b73d812de899d472da3c8e916
parentdd9171eb729d5dc28d8f83ee8340fc3f41f3779a
setup: when detecting platform, ask the Python Standard Library's platform.dist() before executing lsb_release, and cache the result in global (module) variables
This should make it sufficiently fast, while still giving a better answer on Ubuntu than platform.dist() currently does, and also falling back to lsb_release if platform.dist() says that it doesn't know.
src/allmydata/__init__.py