Bug 153163
Summary: | lib/poptQV.c::rpmQVSourceArgCallback() is called twice for each query arg | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | James Olin Oden <james.oden> |
Component: | rpm | Assignee: | Paul Nasrat <nobody+pnasrat> |
Status: | CLOSED WONTFIX | QA Contact: | Mike McLean <mikem> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 3.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-02-12 18:44:58 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
James Olin Oden
2005-04-01 21:53:10 UTC
I looked at this further, and the reason this occurs is that there is a "popt" table defined called rpmQVSourcePoptTable. This table is included in both rpmQueryPoptTable[], and rpmVerifyPoptTable[]. The end result is that any options defined in this table get acted on twice. In my case I simply needed to add my option to rpmQueryPoptTable, as it made since for it to be used by -V. I still kind of think this is a bug, albeit a very minor one. I am not sure how you would work around it though, as it would have to occur in popt itself. Maybe, popt should keep a record of what callbacks it has made and not make them twice. I see what is being done in the code (basically avoiding declaring this information twice), so it seems reasonable popt should support this without unexpected/likely unwanted side effect. Tables need to be called multiple times because of multiple usages of various options like -i and --target. There's no avoiding the aliasing except by making the options unique per table. |