diff options
author | Guido Günther <agx@sigxcpu.org> | 2018-11-24 19:22:34 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2018-11-24 19:46:00 +0100 |
commit | 0277c5477fd86ef1871b7b6cf04bc84192a0330d (patch) | |
tree | bb167ebac4d8b9d06461f3a17adce87392d8cf67 /gbp | |
parent | ad904b89f001bf3c6b4548916b5e27399b9d6a5d (diff) |
PristineTar: Don't fail if pristine-tar does't support signatures
Diffstat (limited to 'gbp')
-rw-r--r-- | gbp/pkg/pristinetar.py | 4 |
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) |