[Pkg-anonymity-tools] [torbrowser-launcher] 22/48: use platform.dist() to detect ubuntu instead of subprocessing out to lsb_release

Holger Levsen holger at moszumanska.debian.org
Wed Feb 4 22:15:39 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository torbrowser-launcher.

commit 79d4e20628867f05601b2fe1872b6a6a6b092407
Author: Micah Lee <micah at micahflee.com>
Date:   Thu Oct 16 12:55:30 2014 -0700

    use platform.dist() to detect ubuntu instead of subprocessing out to lsb_release
---
 setup.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index ae0ae5c..803ae88 100644
--- a/setup.py
+++ b/setup.py
@@ -27,11 +27,11 @@ OTHER DEALINGS IN THE SOFTWARE.
 """
 
 from distutils.core import setup
-import os, sys, subprocess
+import os, sys, platform
 SHARE = 'share'
 
 # detect linux distribution
-distro = subprocess.check_output(['lsb_release', '-i']).split()[-1]
+distro = platform.dist()[0]
 
 def file_list(path):
     files = []

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/torbrowser-launcher.git



More information about the Pkg-anonymity-tools mailing list