[Pkg-privacy-commits] [torbrowser-launcher] 22/28: Read gpg output a line at a time, looking for status-fd output
Ulrike Uhlig
u-guest at moszumanska.debian.org
Sun Jul 10 21:18:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
u-guest pushed a commit to branch debian/sid
in repository torbrowser-launcher.
commit 0bb3764b9f2ea8c25610d1441dc9efa8c9fb2739
Author: Micah Lee <micah at micahflee.com>
Date: Fri Jul 8 16:39:43 2016 -0700
Read gpg output a line at a time, looking for status-fd output
---
torbrowser_launcher/common.py | 22 ++++++++--------------
1 file changed, 8 insertions(+), 14 deletions(-)
diff --git a/torbrowser_launcher/common.py b/torbrowser_launcher/common.py
index 92345ea..084c1a1 100644
--- a/torbrowser_launcher/common.py
+++ b/torbrowser_launcher/common.py
@@ -212,14 +212,14 @@ class Common:
stderr=subprocess.PIPE)
p.wait()
- output = p.stderr.read()
- print "---output begin---\n{}\n---output end---".format(output)
- match = gnupg_import_ok_pattern.match(output)
- if match:
- # The output must match everything in the
- # ``gnupg_import_ok_pattern``, as well as the expected fingerprint:
- if match.group().find(self.fingerprints[key]) >= 0:
- success = True
+ for output in p.stderr.readlines():
+ match = gnupg_import_ok_pattern.match(output)
+ if match:
+ # The output must match everything in the
+ # ``gnupg_import_ok_pattern``, as well as the expected fingerprint:
+ if match.group().find(self.fingerprints[key]) >= 0:
+ success = True
+ break
return success
@@ -231,12 +231,6 @@ class Common:
:returns: ``True`` if all keys were successfully imported; ``False``
otherwise.
"""
-
- # run "gpg --list-keys" first, to create an empty keyring before importing
- #subprocess.call(['/usr/bin/gpg',
- # '--homedir', self.paths['gnupg_homedir'],
- # '--list-secret-keys'])
-
keys = ['tor_browser_developers',]
all_imports_succeeded = True
--
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