[PATCH] Pass keyword args from Deb822.get_gpg_info to GpgInfo.from_sequence.
Mikhail Gusarov
dottedmag at dottedmag.net
Fri Nov 6 16:50:39 UTC 2009
It allows to use non-default keyrings while checking signatures.
Signed-off-by: Mikhail Gusarov <dottedmag at dottedmag.net>
---
debian_bundle/deb822.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/debian_bundle/deb822.py b/debian_bundle/deb822.py
index dd1d201..88994b0 100644
--- a/debian_bundle/deb822.py
+++ b/debian_bundle/deb822.py
@@ -521,7 +521,7 @@ class Deb822(Deb822Dict):
gpg_stripped_paragraph = classmethod(gpg_stripped_paragraph)
- def get_gpg_info(self):
+ def get_gpg_info(self, **kwargs):
"""Return a GpgInfo object with GPG signature information
This method will raise ValueError if the signature is not available
@@ -534,7 +534,7 @@ class Deb822(Deb822Dict):
raise ValueError, "original text cannot be found"
if self.gpg_info is None:
- self.gpg_info = GpgInfo.from_sequence(self.raw_text)
+ self.gpg_info = GpgInfo.from_sequence(self.raw_text, **kwargs)
return self.gpg_info
--
1.6.5
More information about the pkg-python-debian-discuss
mailing list