Bug 49810 - wrong exit code
Summary: wrong exit code
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-07-24 08:40 UTC by Gerald Teschl
Modified: 2007-04-18 16:35 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-07-24 08:40:16 UTC
Embargoed:


Attachments (Terms of Use)

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.


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