Modify

Ticket #986 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

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

yum-3.2.20-gpg-pubkey-arch.patch (787 bytes) - added by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc 12 years ago.

Change History

Changed 12 years ago by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc

comment:1 Changed 12 years ago by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc

comment:2 Changed 12 years ago by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc

  • Owner changed from desai to https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc
  • Status changed from new to accepted

comment:3 Changed 12 years ago by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc

  • Status changed from accepted to closed
  • Resolution set to fixed

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.