[Pkg-privacy-commits] [torbrowser-launcher] 67/476: stopped calling "uname -m" to get the architecture, and instead use python os.uname()
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 13:21:23 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch debian
in repository torbrowser-launcher.
commit 058fbd84039040529ac94bf3fc65271d02aba440
Author: Micah Lee <micahflee at riseup.net>
Date: Thu Feb 21 10:50:07 2013 -0800
stopped calling "uname -m" to get the architecture, and instead use python os.uname()
---
torbrowser-launcher | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/torbrowser-launcher b/torbrowser-launcher
index 99312aa..d113e3e 100755
--- a/torbrowser-launcher
+++ b/torbrowser-launcher
@@ -71,7 +71,8 @@ class TorBrowserLauncher:
# discover the architecture and language
def discover_arch_lang(self):
# figure out the architecture
- self.architecture = subprocess.Popen(['uname', '-m'], stdout=subprocess.PIPE, stderr=None).stdout.read().strip('\n')
+ (sysname, nodename, release, version, machine) = os.uname()
+ self.architecture = machine
# figure out the language
available_languages = ['en-US', 'ar', 'de', 'es-ES', 'fa', 'fr', 'it', 'ko', 'nl', 'pl', 'pt-PT', 'ru', 'vi', 'zh-CN']
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbrowser-launcher.git
More information about the Pkg-privacy-commits
mailing list