From bdb20189bd55c7f9423e971d0c366dbf2d81d751 Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Sun, 29 Jan 2012 16:55:34 +0100 Subject: [PATCH] Quiet GPG operation stderr is shown and an exception is raised if GPG does not exit successfully. --- weboob/applications/weboobrepos/weboobrepos.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weboob/applications/weboobrepos/weboobrepos.py b/weboob/applications/weboobrepos/weboobrepos.py index 1fac1e19..bcce31d8 100644 --- a/weboob/applications/weboobrepos/weboobrepos.py +++ b/weboob/applications/weboobrepos/weboobrepos.py @@ -115,8 +115,10 @@ class WeboobRepos(ReplApplication): os.remove(krname) # Add all valid keys for keyfile in os.listdir(os.path.join(source_path, r.KEYDIR)): + print 'Adding key %s' % keyfile keypath = os.path.join(source_path, r.KEYDIR, keyfile) subprocess.check_call([gpg, + '--quiet', '--no-default-keyring', '--keyring', krname, '--import', keypath])