[oe-commits] [openembedded-core] 20/35: package_manager.py: Skip gpgcheck while using dnf on target

git at git.openembedded.org git at git.openembedded.org
Thu May 3 09:05:25 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch rocko
in repository openembedded-core.

commit 21ca5428fa320aa4c925fe8a1a141c7df863fa84
Author: Manjukumar Matha <manjukumar.harthikote-matha at xilinx.com>
AuthorDate: Tue Apr 3 13:35:04 2018 -0700

    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 at xilinx.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
    Signed-off-by: Armin Kuster <akuster at mvista.com>
---
 meta/lib/oe/package_manager.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index ed8fec8..b2aab15 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -577,7 +577,7 @@ class RpmPM(PackageManager):
             gpg_opts += 'repo_gpgcheck=1\n'
             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'))
 
-        if self.d.getVar('RPM_SIGN_PACKAGES') == '0':
+        if self.d.getVar('RPM_SIGN_PACKAGES') != '1':
             gpg_opts += 'gpgcheck=0\n'
 
         bb.utils.mkdirhier(oe.path.join(self.target_rootfs, "etc", "yum.repos.d"))

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list