[elbe-devel] [PATCH 1/3] pbuilder: avoid specifying keyring on pbuilder create

Manuel Traut manut at linutronix.de
Wed Apr 17 18:15:14 CEST 2019


copying the keyring it seems to destroy the gpg key storage:

Tue Apr 16 10:44:27 2019 -- I: copying apt key file /var/cache/elbe/39381edd-e7c5-42fc-936b-8d628f1971c6/repo/elbe-keyring.gpg to /var/cache/pbuilder/build/1219/etc/apt/trusted.gpg.d/elbe-keyring.gpg
Tue Apr 16 10:44:27 2019 -- I: user script /var/cache/pbuilder/build/1219/tmp/hooks/G10elbe_apt_sources starting
Tue Apr 16 10:44:27 2019 -- Warning: apt-key output should not be parsed (stdout is not a terminal)
Tue Apr 16 10:44:28 2019 -- gpg: [don't know]: invalid packet (ctb=00)
Tue Apr 16 10:44:28 2019 -- gpg: keydb_get_keyblock failed: Value not found
Tue Apr 16 10:44:28 2019 -- gpg: [don't know]: invalid packet (ctb=00)
Tue Apr 16 10:44:28 2019 -- gpg: /tmp/apt-key-gpghome.YBQBLe2Yei/pubring.gpg: copy to '/tmp/apt-key-gpghome.YBQBLe2Yei/pubring.gpg.tmp' failed: Invalid packet
Tue Apr 16 10:44:28 2019 -- gpg: error writing keyring '/tmp/apt-key-gpghome.YBQBLe2Yei/pubring.gpg': Invalid packet
Tue Apr 16 10:44:28 2019 -- gpg: [don't know]: invalid packet (ctb=00)
Tue Apr 16 10:44:28 2019 -- gpg: error reading '-': Invalid packet
Tue Apr 16 10:44:28 2019 -- gpg: import from '-' failed: Invalid packet

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/elbeproject.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index 7e95cd18..46e15598 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -722,10 +722,9 @@ class ElbeProject (object):
 
         # Run pbuilder --create
         self.log.do('pbuilder --create --configfile "%s" --aptconfdir "%s" '
-                    '--debootstrapopts --include="git gnupg2" --keyring "%s"' % (
+                    '--debootstrapopts --include="git gnupg2"' % (
                         os.path.join(self.builddir, "pbuilderrc"),
-                        os.path.join(self.builddir, "aptconfdir"),
-                        os.path.join(self.builddir, "repo", "elbe-keyring.gpg")))
+                        os.path.join(self.builddir, "aptconfdir")))
 
     def sync_xml_to_disk(self):
         try:
-- 
2.20.1




More information about the elbe-devel mailing list