diff options
-rw-r--r-- | meta-signing-key/classes/user-key-store.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-signing-key/classes/user-key-store.bbclass b/meta-signing-key/classes/user-key-store.bbclass index 960bde6..5bc650f 100644 --- a/meta-signing-key/classes/user-key-store.bbclass +++ b/meta-signing-key/classes/user-key-store.bbclass | |||
@@ -477,7 +477,10 @@ def check_gpg_key(basekeyname, keydirfunc, d): | |||
477 | status, output = oe.utils.getstatusoutput('mkdir -m 0700 -p %s' % gpg_path) | 477 | status, output = oe.utils.getstatusoutput('mkdir -m 0700 -p %s' % gpg_path) |
478 | if status: | 478 | if status: |
479 | bb.fatal('Failed to create gpg keying %s: %s' % (gpg_path, output)) | 479 | bb.fatal('Failed to create gpg keying %s: %s' % (gpg_path, output)) |
480 | f = open(os.path.join(gpg_path, 'gpg-agent.conf'), 'w') | 480 | |
481 | gpg_conf = os.path.join(gpg_path, 'gpg-agent.conf') | ||
482 | if not os.path.exists(gpg_conf): | ||
483 | f = open(gpg_conf, 'w') | ||
481 | f.write('allow-loopback-pinentry\n') | 484 | f.write('allow-loopback-pinentry\n') |
482 | f.write('auto-expand-secmem\n') | 485 | f.write('auto-expand-secmem\n') |
483 | f.close() | 486 | f.close() |