aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/pkg/pristinetar.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/pkg/pristinetar.py')
-rw-r--r--gbp/pkg/pristinetar.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/gbp/pkg/pristinetar.py b/gbp/pkg/pristinetar.py
index 79e1334e..bb84a2fc 100644
--- a/gbp/pkg/pristinetar.py
+++ b/gbp/pkg/pristinetar.py
@@ -80,3 +80,9 @@ class PristineTar(Command):
self.run_error = ("Couldn't commit to '%s' with upstream '%s': {stderr_or_reason}" %
(self.branch, upstream))
self.__call__(['commit', archive, upstream])
+
+ def verify(self, archive):
+ """Verify an archive's I{archive} checksum using to the pristine tar branch"""
+
+ self.run_error = 'Pristine-tar couldn\'t verify "%s": {stderr_or_reason}' % os.path.basename(archive)
+ self.__call__(['verify', archive])