Bug 49810

Summary: wrong exit code
Product: [Retired] Red Hat Linux Reporter: Gerald Teschl <gt>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-07-24 08:40:16 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 Gerald Teschl 2001-07-24 08:40:12 UTC
Description of Problem:
rpm -qp gives exit code 0 even if the package is broken. Please fix.

How Reproducible:


Steps to Reproduce:
$  rpm -qp ttfonts-ja-1.0-3.noarch.rpm ; echo $?
warning: Expected size:      8763422 =
lead(96)+sigs(160)+pad(0)+data(8763166)
warning:   Actual size:       153600
ttfonts-ja-1.0-3
0

Actual Results:
exit code 0

Expected Results:
exit code != 0

Additional Information:

Comment 1 Jeff Johnson 2001-07-24 13:40:28 UTC
This is now a warning, not an error. Since it's now possible to put installed
bits back into a package using --repackage, and the version of zlib used
causes the package to have a different size, there's no way to differntiate
that case from the more typical case (at the moment) of a damaged package.

Use rpm -K to verify package integrity.