diff options
author | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2018-04-03 13:35:04 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-04-05 14:49:07 +0100 |
commit | 18ba941eb0266eed61dd6a6407fd9a8d0f46425d (patch) | |
tree | b5c2a7ac002ec4bc593d993f2f5197e2c8bc99fa /meta/lib/oe | |
parent | 60822a633926554e43319e8f2f5cc4fb8a5cab16 (diff) | |
download | poky-18ba941eb0266eed61dd6a6407fd9a8d0f46425d.tar.gz |
package_manager.py: Skip gpgcheck while using dnf on target
By default, RPM_SIGN_PACKAGES is not defined. Add gpgcheck=0 to
oe-remote-repo.repo file, otherwise dnf will complain during
install operation on target
Note, RPM_SIGN_PACKAGES is set only when you inherit sign_rpm explicitly
(From OE-Core rev: 002a71eaa7606828c399972d8fd35e19e7b71929)
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/package_manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index e006dc6215..9f22fb0ecc 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -674,7 +674,7 @@ class RpmPM(PackageManager): | |||
674 | gpg_opts += 'repo_gpgcheck=1\n' | 674 | gpg_opts += 'repo_gpgcheck=1\n' |
675 | 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')) | 675 | 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')) |
676 | 676 | ||
677 | if self.d.getVar('RPM_SIGN_PACKAGES') == '0': | 677 | if self.d.getVar('RPM_SIGN_PACKAGES') != '1': |
678 | gpg_opts += 'gpgcheck=0\n' | 678 | gpg_opts += 'gpgcheck=0\n' |
679 | 679 | ||
680 | bb.utils.mkdirhier(oe.path.join(self.target_rootfs, "etc", "yum.repos.d")) | 680 | bb.utils.mkdirhier(oe.path.join(self.target_rootfs, "etc", "yum.repos.d")) |