Red Hat Bugzilla – Bug 49810
wrong exit code
Last modified: 2007-04-18 12:35:06 EDT
Description of Problem:
rpm -qp gives exit code 0 even if the package is broken. Please fix.
Steps to Reproduce:
$ rpm -qp ttfonts-ja-1.0-3.noarch.rpm ; echo $?
warning: Expected size: 8763422 =
warning: Actual size: 153600
exit code 0
exit code != 0
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.