[OE-core] [PATCH v3] lib/oe/package_manager.py (rpm): Allow use of non-signed packages

Otavio Salvador otavio.salvador at ossystems.com.br
Mon Oct 2 16:40:31 UTC 2017


On Mon, Oct 2, 2017 at 12:06 PM, Alexander Kanavin
<alexander.kanavin at linux.intel.com> wrote:
> On 10/02/2017 06:02 PM, Otavio Salvador wrote:
>> Em 2 de out de 2017 11:57 AM, "Alexander Kanavin"
>> <alexander.kanavin at linux.intel.com
>> <mailto:alexander.kanavin at linux.intel.com>> escreveu:
>>
>>     On 10/02/2017 05:52 PM, Otavio Salvador wrote:
>>
>>         @@ -551,6 +551,8 @@ class RpmPM(PackageManager):
>>                    if self.d.getVar('PACKAGE_FEED_SIGN') == '1':
>>                        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'))
>>         +        elif: self.d.getVar('RPM_SIGN_PACKAGES') == '0':
>>         +            gpg_opts = 'gpgcheck=0\n'
>>                    else:
>>                        gpg_opts = ''
>>
>>
>>     Still wrong! I'm kind of getting tired though. Can you figure it out
>>     for yourself, this time?
>>
>>
>> Even better, I'll leave it broken.
>>
>> I use I'll myself so good luck with rpm.
>
> FWIW, the wrong part in this patch is that when PACKAGE_FEED_SIGN is set to
> 1, but RPM_SIGN_PACKAGES is set to 0, you will not get gpgsign=0 added to
> configuration.

Good that you know how to fix it. I gave up as you said, I got tired.
Being not an active RPM user I took the time to check and test it and
got a non-helpful attitude from one of its maintainers so please go
ahead and fix it if you care. I got tired too.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list