Modify ↓
Ticket #394 (closed defect: fixed)
Incorrect "epoch" handling for packages
Reported by: | [email protected]… | 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
Note: See
TracTickets for help on using
tickets.
This is fixed with the new RPMng driver, which is committed in [ca0148e3ee939b0eb84e61ba40c5fbdc9b81afc2] (SVN r3013) and is included in 0.9.3pre4.