Control: tags 912092 + patch

On Sun 2018-10-28 11:22:28 +0200, Adrian Bunk wrote:
> Some recent change in unstable makes impass FTBFS:
>
> https://tests.reproducible-builds.org/debian/history/impass.html
> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/impass.html

I'm not convinced that this is a change in unstable -- it appears to be
a bug in the test suite, which is fixed by the attached patch.

  --dkg

From 3e6b1fa16887f105adf35599c922b452f8af0af4 Mon Sep 17 00:00:00 2001
From: Daniel Kahn Gillmor <d...@fifthhorseman.net>
Date: Tue, 27 Nov 2018 02:46:30 -0500
Subject: [PATCH 1/2] Fix test/library

We were trying to decrypt the database without any specific keyid.
This meant that the library was looking in ~/.impass/keyid, which was
causing the key selection to raise a failure.
---
 test/library | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/library b/test/library
index 0963f35..8312e68 100755
--- a/test/library
+++ b/test/library
@@ -31,7 +31,7 @@ test_expect_equal_file OUTPUT EXPECTED
 test_begin_subtest "decrypt db"
 python3 - <<EOF 2>&1 | sed "s|$IMPASS_DB|IMPASS_DB|" >OUTPUT
 import impass
-db = impass.Database("$IMPASS_DB")
+db = impass.Database("$IMPASS_DB", '$IMPASS_KEYID')
 print(db)
 print(db.version)
 print('foo@bar' in db)
-- 
2.19.2

Attachment: signature.asc
Description: PGP signature

Reply via email to