Commit a55d19f2 authored by Guido Günther's avatar Guido Günther

pristine-tar: detect signature verification support

parent 90f0c8c8
......@@ -32,7 +32,7 @@ class PristineTar(Command):
def _has_feature(self, feature):
def _has_in_output(self, feature):
Check if pristine_tar has a certain feature enabled.
......@@ -49,7 +49,12 @@ class PristineTar(Command):
return False
def has_feature_verify(self):
return self._has_feature("verify")
"""Does this pristine-tar support tarball verification"""
return self._has_in_output("verify")
def has_feature_sig(self):
"""Does this pristine-tar support detached upstream signatures"""
return self._has_in_output(r'\[-s signaturefile\]')
def has_commit(self, archive_regexp):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment