Modify ↓
Ticket #986 (closed defect: fixed)
yum 3.2.20 returns None for arch of gpg-pubkey packages
Reported by: | https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc | Owned by: | https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.2.0 Release |
Component: | bcfg2-client | Version: | 1.0 |
Keywords: | Cc: |
Description
Yum 3.2.20 on SLES 11.1 returns None (instead of "noarch") for the arch attribute of gpg-pubkey packages. This breaks YUMng, which expects "noarch" (which is what happens with, e.g. yum 3.2.22 on CentOS 5.5). For example:
import yum yb = yum.YumBase?() for pkg in yb.rpmdb.searchNevra(name='gpg-pubkey'):
... print "%s.%s" % (pkg.name, pkg.arch) ... gpg-pubkey.None
I've attached a patch that backports some functionality from the YUM24.py tool to scrub package epochs and archs that are set to None and make the YUMng.py tool more resilient.
Attachments
Change History
Changed 12 years ago by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc
- Attachment yum-3.2.20-gpg-pubkey-arch.patch added
comment:1 Changed 12 years ago by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc
Patch committed: https://github.com/solj/bcfg2/commit/fec3476b511912b0a8761499449ad23858eed362
This can be resolved.
Note: See
TracTickets for help on using
tickets.