aboutsummaryrefslogtreecommitdiff
path: root/gbp/pkg/pristinetar.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/pkg/pristinetar.py')
-rw-r--r--gbp/pkg/pristinetar.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/pkg/pristinetar.py b/gbp/pkg/pristinetar.py
index 3cadf482..5c0892b7 100644
--- a/gbp/pkg/pristinetar.py
+++ b/gbp/pkg/pristinetar.py
@@ -92,7 +92,7 @@ class PristineTar(Command):
"""
args = ['checkout', archive]
self.run_error = 'Pristine-tar couldn\'t checkout "%s": {stderr_or_reason}' % os.path.basename(archive)
- if signaturefile:
+ if signaturefile and self.has_feature_sig():
args += ['-s', signaturefile]
self.__call__(args, quiet=quiet)
@@ -109,7 +109,7 @@ class PristineTar(Command):
args = ['commit', archive, upstream]
self.run_error = ("Couldn't commit to '%s' with upstream '%s': {stderr_or_reason}" %
(self.branch, upstream))
- if signaturefile:
+ if signaturefile and self.has_feature_sig():
args += ['-s', signaturefile]
self.__call__(args, quiet=quiet)