summaryrefslogtreecommitdiffstats
path: root/meta/classes/sign_rpm.bbclass
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-02-10 16:15:57 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-19 01:01:25 +0000
commite845b75f8fc718765158a858cfe904c575315f45 (patch)
treea456ad2949d45e46a9f886717eb02c3c822aa90c /meta/classes/sign_rpm.bbclass
parentd5be8666a1f429283e8200ef67f1fc3afa587c4f (diff)
downloadpoky-e845b75f8fc718765158a858cfe904c575315f45.tar.gz
sign_rpm.bbclass: do not store key details in signer instance
Refactor the LocalSigner class. Do not store keyid or passphrase file in the signer object as they are only needed for some of the methods. For example, the newly added verify() method does not need any key parameters and export_pubkey only uses keyid. (From OE-Core rev: e2412294b6b1d3a80ee97a0706613349edc51d33) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sign_rpm.bbclass')
-rw-r--r--meta/classes/sign_rpm.bbclass9
1 files changed, 4 insertions, 5 deletions
diff --git a/meta/classes/sign_rpm.bbclass b/meta/classes/sign_rpm.bbclass
index 8bcabeec91..8b59bacd45 100644
--- a/meta/classes/sign_rpm.bbclass
+++ b/meta/classes/sign_rpm.bbclass
@@ -36,13 +36,12 @@ python sign_rpm () {
36 import glob 36 import glob
37 from oe.gpg_sign import get_signer 37 from oe.gpg_sign import get_signer
38 38
39 signer = get_signer(d, 39 signer = get_signer(d, d.getVar('RPM_GPG_BACKEND', True))
40 d.getVar('RPM_GPG_BACKEND', True),
41 d.getVar('RPM_GPG_NAME', True),
42 d.getVar('RPM_GPG_PASSPHRASE_FILE', True))
43 rpms = glob.glob(d.getVar('RPM_PKGWRITEDIR', True) + '/*') 40 rpms = glob.glob(d.getVar('RPM_PKGWRITEDIR', True) + '/*')
44 41
45 signer.sign_rpms(rpms) 42 signer.sign_rpms(rpms,
43 d.getVar('RPM_GPG_NAME', True),
44 d.getVar('RPM_GPG_PASSPHRASE_FILE', True))
46} 45}
47 46
48do_package_index[depends] += "signing-keys:do_export_public_keys" 47do_package_index[depends] += "signing-keys:do_export_public_keys"