summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2017-10-02 13:56:31 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-10-07 23:20:40 +0100
commit48d2dc67118087cc77d13f6425a52209841baa7f (patch)
treea365ef9816e463013e992a364fe81b8cdaad94c7 /meta/lib
parenta889d2733c23b17370b06f776dbc0ba262b13dae (diff)
downloadpoky-48d2dc67118087cc77d13f6425a52209841baa7f.tar.gz
lib/oe/package_manager.py (rpm): Allow use of non-signed packages
When we wish to use the package feed for local development, it does not uses GPG signed feeds by default but dnf uses package signature check. We need to configure the GPG signature check out so it works out of box. With this patch, installing non-signed packages works: $: dnf install <package> (From OE-Core rev: bceafe23cbe12a1ab0628b70865cb8867c7d7ee1) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/package_manager.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index d458a9b01d..6cbb61fd84 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -548,11 +548,13 @@ class RpmPM(PackageManager):
548 if feed_uris == "": 548 if feed_uris == "":
549 return 549 return
550 550
551 gpg_opts = ''
551 if self.d.getVar('PACKAGE_FEED_SIGN') == '1': 552 if self.d.getVar('PACKAGE_FEED_SIGN') == '1':
552 gpg_opts = 'repo_gpgcheck=1\n' 553 gpg_opts += 'repo_gpgcheck=1\n'
553 gpg_opts += 'gpgkey=file://%s/pki/packagefeed-gpg/PACKAGEFEED-GPG-KEY-%s-%s\n' % (self.d.getVar('sysconfdir'), self.d.getVar('DISTRO'), self.d.getVar('DISTRO_CODENAME')) 554 gpg_opts += 'gpgkey=file://%s/pki/packagefeed-gpg/PACKAGEFEED-GPG-KEY-%s-%s\n' % (self.d.getVar('sysconfdir'), self.d.getVar('DISTRO'), self.d.getVar('DISTRO_CODENAME'))
554 else: 555
555 gpg_opts = '' 556 if self.d.getVar('RPM_SIGN_PACKAGES') == '0':
557 gpg_opts += 'gpgcheck=0\n'
556 558
557 bb.utils.mkdirhier(oe.path.join(self.target_rootfs, "etc", "yum.repos.d")) 559 bb.utils.mkdirhier(oe.path.join(self.target_rootfs, "etc", "yum.repos.d"))
558 remote_uris = self.construct_uris(feed_uris.split(), feed_base_paths.split()) 560 remote_uris = self.construct_uris(feed_uris.split(), feed_base_paths.split())