summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/gpg_sign.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/lib/oe/gpg_sign.py b/meta/lib/oe/gpg_sign.py
index 821787ec7e..a4f310e536 100644
--- a/meta/lib/oe/gpg_sign.py
+++ b/meta/lib/oe/gpg_sign.py
@@ -65,6 +65,16 @@ class LocalSigner(object):
65 raise bb.build.FuncFailed("Failed to create signature for '%s': %s" % 65 raise bb.build.FuncFailed("Failed to create signature for '%s': %s" %
66 (input_file, output)) 66 (input_file, output))
67 67
68 def verify(self, sig_file):
69 """Verify signature"""
70 cmd = self.gpg_bin + " --verify "
71 if self.gpg_path:
72 cmd += "--homedir %s " % self.gpg_path
73 cmd += sig_file
74 status, _ = oe.utils.getstatusoutput(cmd)
75 ret = False if status else True
76 return ret
77
68 78
69def get_signer(d, backend, keyid, passphrase_file): 79def get_signer(d, backend, keyid, passphrase_file):
70 """Get signer object for the specified backend""" 80 """Get signer object for the specified backend"""