Modify

Ticket #394 (closed defect: fixed)

Opened 15 years ago

Last modified 15 years ago

Incorrect "epoch" handling for packages

Reported by: icon@… Owned by: desai
Priority: major Milestone: Bcfg2 0.9.3 Release
Component: bcfg2-client Version: 0.9.x
Keywords: Cc:

Description

Currently bcfg2 ignores "epochs", which are part of package versioning. This is particularly noticeable with the yum driver, since the sync script generates versions with epochs, and bcfg2 will then claim that incorrect versions are installed.

To generate the list of installed packages bcfg2 currently uses:

rpm -qa --qf '%{NAME} %{VERSION}-%{RELEASE}\n'

It should instead use:

rpm -qa --qf '%{NAME} %{EPOCH}:%{VERSION}-%{RELEASE}\n' | sed 's/(none)://g'

or something similar. I think it will break existing setups, though -- but it's a bug that should be fixed in order to have correct behaviour.

Attachments

Change History

comment:1 Changed 15 years ago by desai

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

This is fixed with the new RPMng driver, which is committed in [ca0148e3ee939b0eb84e61ba40c5fbdc9b81afc2] (SVN r3013) and is included in 0.9.3pre4.

comment:2 Changed 15 years ago by desai

  • Milestone set to Bcfg2 0.9.3 Release

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.