summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/package_manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oe/package_manager.py')
-rw-r--r--meta/lib/oe/package_manager.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 2a4df61998..8b2b33106e 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -520,7 +520,9 @@ class RpmPM(PackageManager):
520 open(platformconfdir + "macros", 'a').write("%_prefer_color 7") 520 open(platformconfdir + "macros", 'a').write("%_prefer_color 7")
521 521
522 if self.d.getVar('RPM_SIGN_PACKAGES') == '1': 522 if self.d.getVar('RPM_SIGN_PACKAGES') == '1':
523 pubkey_path = self.d.getVar('RPM_GPG_PUBKEY') 523 signer = get_signer(self.d, self.d.getVar('RPM_GPG_BACKEND'))
524 pubkey_path = oe.path.join(self.d.getVar('B'), 'rpm-key')
525 signer.export_pubkey(pubkey_path, self.d.getVar('RPM_GPG_NAME'))
524 rpm_bin = bb.utils.which(os.getenv('PATH'), "rpmkeys") 526 rpm_bin = bb.utils.which(os.getenv('PATH'), "rpmkeys")
525 cmd = [rpm_bin, '--root=%s' % self.target_rootfs, '--import', pubkey_path] 527 cmd = [rpm_bin, '--root=%s' % self.target_rootfs, '--import', pubkey_path]
526 try: 528 try: