diff -Nru python-gnupg-0.3.8/debian/changelog python-gnupg-0.3.8/debian/changelog --- python-gnupg-0.3.8/debian/changelog 2015-10-13 08:37:50.000000000 +0000 +++ python-gnupg-0.3.8/debian/changelog 2015-11-29 14:19:10.000000000 +0000 @@ -1,3 +1,10 @@ +python-gnupg (0.3.8-2) unstable; urgency=medium + + [Andreas Noteng ] + * Subkey fingerprints are no longer incorrectly captured (Closes: #802967) + + -- Elena Grandi Sun, 29 Nov 2015 14:50:12 +0100 + python-gnupg (0.3.8-1) unstable; urgency=medium [ Elena Grandi ] diff -Nru python-gnupg-0.3.8/debian/.git-dpm python-gnupg-0.3.8/debian/.git-dpm --- python-gnupg-0.3.8/debian/.git-dpm 2015-10-13 08:27:51.000000000 +0000 +++ python-gnupg-0.3.8/debian/.git-dpm 2015-11-29 14:19:10.000000000 +0000 @@ -1,6 +1,6 @@ # see git-dpm(1) from git-dpm package -d19d3f404e9d384d54b563ba52edcdd47fce66fb -d19d3f404e9d384d54b563ba52edcdd47fce66fb +fd6835d8beec6703c412c06d2cca6e8c74d8f417 +fd6835d8beec6703c412c06d2cca6e8c74d8f417 16065427a552e386da63551fe79e7836133dfac5 16065427a552e386da63551fe79e7836133dfac5 python-gnupg_0.3.8.orig.tar.gz diff -Nru python-gnupg-0.3.8/debian/patches/0002-Correctly-capture-subkey-fingerprints.patch python-gnupg-0.3.8/debian/patches/0002-Correctly-capture-subkey-fingerprints.patch --- python-gnupg-0.3.8/debian/patches/0002-Correctly-capture-subkey-fingerprints.patch 1970-01-01 00:00:00.000000000 +0000 +++ python-gnupg-0.3.8/debian/patches/0002-Correctly-capture-subkey-fingerprints.patch 2015-11-29 14:19:10.000000000 +0000 @@ -0,0 +1,69 @@ +From fd6835d8beec6703c412c06d2cca6e8c74d8f417 Mon Sep 17 00:00:00 2001 +Subject: Correctly capture subkey fingerprints. +Description: Subkey fingerprints are no longer incorrectly captured. +Author: Vinay Sajip +Origin: upstream +Bug: https://bitbucket.org/vinay.sajip/python-gnupg/issues/44/possible-undocumented-api-change-when +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802967 +Applied-Upstream: https://bitbucket.org/vinay.sajip/python-gnupg/commits/e3cb134162a5 +Last-Update: 2015-11-15 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- + gnupg.py | 7 +++++-- + test_gnupg.py | 3 ++- + 2 files changed, 7 insertions(+), 3 deletions(-) + +diff --git a/gnupg.py b/gnupg.py +index ec70661..01f86ff 100644 +--- a/gnupg.py ++++ b/gnupg.py +@@ -455,7 +455,6 @@ class ListKeys(SearchKeys): + + crt = X.509 certificate + crs = X.509 certificate and private key available +- ssb = secret subkey (secondary key) + uat = user attribute (same as user id except for field 10). + sig = signature + rev = revocation signature +@@ -500,6 +499,10 @@ class ListKeys(SearchKeys): + self.curkey['subkeys'].append(subkey) + self.in_subkey = True + ++ def ssb(self, args): ++ subkey = [args[4], None] # keyid, type ++ self.curkey['subkeys'].append(subkey) ++ self.in_subkey = True + + class ScanKeys(ListKeys): + ''' Handle status messages for --with-fingerprint.''' +@@ -1121,7 +1124,7 @@ class GPG(object): + self._collect_output(p, result, stdin=p.stdin) + lines = result.data.decode(self.encoding, + self.decode_errors).splitlines() +- valid_keywords = 'pub uid sec fpr sub'.split() ++ valid_keywords = 'pub uid sec fpr sub ssb'.split() + for line in lines: + if self.verbose: + print(line) +diff --git a/test_gnupg.py b/test_gnupg.py +index f6325ef..55a3c8e 100644 +--- a/test_gnupg.py ++++ b/test_gnupg.py +@@ -240,6 +240,7 @@ class GPGTestCase(unittest.TestCase): + private_keys = self.gpg.list_keys(secret=True) + self.assertTrue(is_list_with_len(private_keys, 1), + "1-element list expected") ++ self.assertEqual(len(private_keys.fingerprints), 1) + # Now do the same test, but using keyring and secret_keyring arguments + hd = os.path.join(os.getcwd(), 'keys') + gpg = gnupg.GPG(gnupghome=hd, gpgbinary=GPGBINARY, +@@ -689,7 +690,7 @@ def suite(args=None): + + def init_logging(): + logging.basicConfig(level=logging.DEBUG, filename="test_gnupg.log", +- filemode="w", format="%(asctime)s %(levelname)-5s %(name)-10s %(threadName)-10s %(message)s") ++ filemode="w", format="%(asctime)s %(levelname)-5s %(name)-10s %(threadName)-10s %(lineno)4d %(message)s") + + def main(): + init_logging() diff -Nru python-gnupg-0.3.8/debian/patches/series python-gnupg-0.3.8/debian/patches/series --- python-gnupg-0.3.8/debian/patches/series 2015-10-13 08:27:51.000000000 +0000 +++ python-gnupg-0.3.8/debian/patches/series 2015-11-29 14:19:10.000000000 +0000 @@ -1 +1,2 @@ skip_network_needing_test.patch +0002-Correctly-capture-subkey-fingerprints.patch