Bug 103207
| Summary: | query flag --noghost is always set | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Michael Schröder <mls> | ||||||
| Component: | rpm | Assignee: | Paul Nasrat <nobody+pnasrat> | ||||||
| Status: | CLOSED UPSTREAM | QA Contact: | Mike McLean <mikem> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 3 | ||||||||
| 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: | 2005-04-20 12:37:38 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: | |||||||||
| Attachments: |
|
||||||||
|
Description
Michael Schröder
2003-08-27 18:38:31 UTC
Created attachment 94248 [details]
patch to fix it
Hmmm, this fix is going to depend on whether %ghost files are considered part of a package or not. I'm inclined to say not part of a package, and hence should not be displayed in normal file listings. Hmmm ... Thanks for noticing and patch. But then the option should read "--ghost" ;-) One can also argue that they are part of the package because 'rpm -qf <ghostfile>' works and they get deleted when the package is uninstalled. There's something broken here, but I'm not prepared to re- re- define %ghost semantics right now, possibly not ever. Gah, %ghost is so pointless and broken, sigh. NEEDINFO so I don't have to see the bug every day. Closing due to inactivity. If this issue still occurs with current releases, please reopen and set the release in which you've encountered the problem. It's easy to reproduce: rpm -qf /var/lib/rpm/__db.001 rpm -ql rpm | grep __db Created attachment 113405 [details]
Add --ghost to balance --noghost
Michael, rather than change current behaviour would being able to set --ghost
be enough for you? This means that we don't confuse anyone with existing
queries but a new option would provide ghost listing and verification.
Query lists all %ghosts
[pauln@anu rpm-4.4.x]$ ./rpm --ghost -ql rpm | grep __db
/var/lib/rpm/__db.001
/var/lib/rpm/__db.002
/var/lib/rpm/__db.003
/var/lib/rpm/__db.004
/var/lib/rpm/__db.005
/var/lib/rpm/__db.006
/var/lib/rpm/__db.007
/var/lib/rpm/__db.008
/var/lib/rpm/__db.009
verify works as expected
[pauln@anu rpm-4.4.x]$ ./rpm --ghost -V rpm | grep __db
.....UG. c /var/lib/rpm/__db.001
.....UG. c /var/lib/rpm/__db.002
.....UG. c /var/lib/rpm/__db.003
Sure, --ghost is fine. Thanks! I've commited to RPM head and I'll see about getting into 4.4.x Was there any particulary rpm version you had targetted for this? No, I just found the bug one day and fixed it in our (i.e. SuSE's) rpm. RPM head is enough for me. |