All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] package_manager.py: Skip gpgcheck while using dnf on target
@ 2018-04-03 20:35 Manjukumar Matha
  2018-04-04 18:27 ` Manjukumar Harthikote Matha
  0 siblings, 1 reply; 3+ messages in thread
From: Manjukumar Matha @ 2018-04-03 20:35 UTC (permalink / raw)
  To: openembedded-core

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

Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.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 e006dc6..9f22fb0 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -674,7 +674,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"))
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] package_manager.py: Skip gpgcheck while using dnf on target
  2018-04-03 20:35 [PATCH] package_manager.py: Skip gpgcheck while using dnf on target Manjukumar Matha
@ 2018-04-04 18:27 ` Manjukumar Harthikote Matha
  2018-04-05  9:22   ` Alexander Kanavin
  0 siblings, 1 reply; 3+ messages in thread
From: Manjukumar Harthikote Matha @ 2018-04-04 18:27 UTC (permalink / raw)
  To: Manjukumar Harthikote Matha, openembedded-core

Hi All,

> -----Original Message-----
> From: Manjukumar Matha [mailto:manjukumar.harthikote-matha@xilinx.com]
> Sent: Tuesday, April 03, 2018 1:35 PM
> To: openembedded-core@lists.openembedded.org
> Cc: Manjukumar Harthikote Matha <MANJUKUM@xilinx.com>
> Subject: [OE-core][PATCH] 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
> 
> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.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 e006dc6..9f22fb0 100644
> --- a/meta/lib/oe/package_manager.py
> +++ b/meta/lib/oe/package_manager.py
> @@ -674,7 +674,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"))
> --

Any feedback/concerns on this patch? 

Thanks,
Manju


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] package_manager.py: Skip gpgcheck while using dnf on target
  2018-04-04 18:27 ` Manjukumar Harthikote Matha
@ 2018-04-05  9:22   ` Alexander Kanavin
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Kanavin @ 2018-04-05  9:22 UTC (permalink / raw)
  To: Manjukumar Harthikote Matha, openembedded-core

On 04/04/2018 09:27 PM, Manjukumar Harthikote Matha wrote:
>> diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
>> index e006dc6..9f22fb0 100644
>> --- a/meta/lib/oe/package_manager.py
>> +++ b/meta/lib/oe/package_manager.py
>> @@ -674,7 +674,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"))
>> --
> 
> Any feedback/concerns on this patch?

Generally we don't positively acknowledge patches, as it would create 
too much traffic on the mailing list. If no one said anything so far, 
then no one has concerns. Also, have a little patience please.

Alex


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-04-05  9:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-03 20:35 [PATCH] package_manager.py: Skip gpgcheck while using dnf on target Manjukumar Matha
2018-04-04 18:27 ` Manjukumar Harthikote Matha
2018-04-05  9:22   ` Alexander Kanavin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.