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

Ulrike Uhlig u-guest at moszumanska.debian.org
Mon Dec 1 21:16:47 UTC 2014


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

u-guest pushed a commit to branch debian
in repository torbrowser-launcher.

commit 3a5b481932f526d72ba1f910197c9ccb1f6855b7
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