Bug 230580

Summary: odd output when querying based on arch
Product: [Fedora] Fedora Reporter: Jeremy Katz <katzj>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED DUPLICATE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: rawhideCC: michal, olle
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: 2007-06-11 14:28:30 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 Jeremy Katz 2007-03-01 16:59:53 UTC
Querying for a package by arch can lead to odd (lack of) output in some cases.

Easiest to show with an example:
[katzj@erebor creator]$ rpm -q bash
bash-0:3.2-9.fc7.x86_64
[katzj@erebor creator]$ rpm -q bash.x86_64
bash-0:3.2-9.fc7.x86_64
[katzj@erebor creator]$ rpm -q bash.i386
[katzj@erebor creator]$ rpm -q foo
package foo is not installed
[katzj@erebor creator]$ rpm -q foo.i386
package foo.i386 is not installed


I'd expect the query for bash.i386 to say that it's not installed.

Comment 1 Michal Jaegermann 2007-03-02 04:00:34 UTC
That goes somewhat deeper.  Watch this:
$ rpm -q bash ; echo $?
bash-3.2-9.fc7
0
$rpm -q bash.x86_64 ; echo $?
bash-3.2-9.fc7
0
$ rpm -q foo ; echo $?
package foo is not installed
1
$ rpm -q foo.i386 ; echo $?
package foo.i386 is not installed
1
$ rpm -q bash.i386 ; echo $?
0

Clearly your rpm is configured in some non-default way if
it responds with 'bash-0:3.2-9.fc7.x86_64' but that is not the issue.

Comment 2 Jeff Johnson 2007-03-08 13:06:45 UTC
This is a dupe of another bug report (by D. Hugh Radimier iirc).

UPSTREAM

Comment 3 Panu Matilainen 2007-06-11 14:28:30 UTC

*** This bug has been marked as a duplicate of 124016 ***