[elbe-devel] [PATCH] repomanager: unlock key before finalizing repo
Manuel Traut
manut at linutronix.de
Mon Apr 29 19:35:18 CEST 2019
the gnupg key should be unlocked by the repomanager constructor.
However "elbe prjrepo upload_pkg" fails with the following error:
--8<--
running cmd +reprepro --basedir
"/var/cache/elbe/e9c6c678-669b-4d6c-b822-d432e62a78ea/repo" export jessie+
------------------------------------------------------------------------------
gpgme gave error Pinentry:32870: Inappropriate ioctl for device
ERROR: Could not finish exporting 'jessie'!
There have been errors!
------------------------------------------------------------------------------
Command failed with errorcode 251
--8<--
Adding an additional unlock_key resolves the problem.
Probably this change shouldn't be added to elbe until we understand
why it is needed.
Signed-off-by: Manuel Traut <manut at linutronix.de>
---
elbepack/repomanager.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/elbepack/repomanager.py b/elbepack/repomanager.py
index a1b4f500..f3dd6c25 100644
--- a/elbepack/repomanager.py
+++ b/elbepack/repomanager.py
@@ -180,6 +180,7 @@ class RepoBase(object):
def finalize(self):
for att in self.attrs:
+ unlock_key(self.keyid)
self.log.do(
'reprepro --basedir "' +
self.fs.path +
--
2.20.1
More information about the elbe-devel
mailing list