From 2f1c1577e74c36d17aa9f8956e95c42018c71925 Mon Sep 17 00:00:00 2001 From: Christian Göttsche Date: Tue, 17 Dec 2019 00:10:01 +0100 Subject: add option to export tarballs with upstream signature Add option `--upstream-signatures=[on|auto|off]` to export-orig. Add option `--git-upstream-signatures=[on|auto|off]` to buildpackage. Closes: 872864 --- tests/doctests/test_PristineTar.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tests/doctests/test_PristineTar.py') diff --git a/tests/doctests/test_PristineTar.py b/tests/doctests/test_PristineTar.py index 15c614cf..dfeb7193 100644 --- a/tests/doctests/test_PristineTar.py +++ b/tests/doctests/test_PristineTar.py @@ -134,9 +134,18 @@ def test_pristine_has_commit(): >>> repo.pristine_tar.has_commit('upstream', '1.0') True >>> branch = repo.rev_parse('pristine-tar') - >>> commit = repo.pristine_tar.get_commit('upstream_1.0.orig.tar.gz') + >>> commit, sig = repo.pristine_tar.get_commit('upstream_1.0.orig.tar.gz') >>> branch == commit True + >>> sig + True + >>> repo.pristine_tar.commit('../upstream_1.0.orig.tar.gz', 'upstream') + >>> branch = repo.rev_parse('pristine-tar') + >>> commit, sig = repo.pristine_tar.get_commit('upstream_1.0.orig.tar.gz') + >>> branch == commit + True + >>> sig + False """ -- cgit v1.2.3