Bug 103207 - query flag --noghost is always set
Summary: query flag --noghost is always set
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-08-27 18:38 UTC by Michael Schröder
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-04-20 12:37:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch to fix it (1.21 KB, patch)
2003-09-05 18:12 UTC, Michael Schröder
no flags Details | Diff
Add --ghost to balance --noghost (693 bytes, patch)
2005-04-20 11:37 UTC, Paul Nasrat
no flags Details | Diff

Description Michael Schröder 2003-08-27 18:38:31 UTC
Description of problem:
ghost files are never shown in the file list

Version-Release number of selected component (if applicable):
rpm-4.1.1

Solution:
Either invert the meaning of the bit in qve_fflags or don't
initialize it with zero.

Comment 1 Michael Schröder 2003-09-05 18:12:48 UTC
Created attachment 94248 [details]
patch to fix it

Comment 2 Jeff Johnson 2003-09-10 13:59:24 UTC
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.

Comment 3 Michael Schröder 2003-09-10 15:59:29 UTC
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.

Comment 4 Jeff Johnson 2003-12-27 16:19:27 UTC
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.

Comment 5 Jeff Johnson 2003-12-27 16:27:47 UTC
NEEDINFO so I don't have to see the bug every day.

Comment 6 Jeremy Katz 2005-04-19 18:42:25 UTC
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.

Comment 7 Michael Schröder 2005-04-20 10:08:34 UTC
It's easy to reproduce: 
rpm -qf /var/lib/rpm/__db.001 
rpm -ql rpm | grep __db 
 

Comment 8 Paul Nasrat 2005-04-20 11:37:52 UTC
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

Comment 9 Michael Schröder 2005-04-20 11:44:49 UTC
Sure, --ghost is fine. Thanks! 

Comment 10 Paul Nasrat 2005-04-20 12:37:38 UTC
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?

Comment 11 Michael Schröder 2005-04-20 12:44:05 UTC
No, I just found the bug one day and fixed it in our (i.e. SuSE's) rpm. RPM 
head is enough for me. 


Note You need to log in before you can comment on or make changes to this bug.