Bug 26850

Summary: wrong exit code
Product: [Retired] Red Hat Linux Reporter: Gerald Teschl <gt>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: Florence Gold
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-02-26 20:06:33 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-02-09 18:40:14 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22 i686)


If I try to upgrada a bad package (e.g. incomplete download) rpm will give
the correct error, but the exit code is 0.

Reproducible: Always
Steps to Reproduce:
[root@soliton tmp]# touch glibc-2.2.1-6.i686.rpm; ls -l
glibc-2.2.1-6.i686.rpm
-rw-r--r--    1 root     root            0 Feb  9 19:46
glibc-2.2.1-6.i686.rpm
[root@soliton tmp]# rpm -U glibc-2.2.1-6.i686.rpm; echo $?
error: glibc-2.2.1-6.i686.rpm does not appear to be a RPM package
0
	

Expected Results:  exit code > 0

Comment 1 Glen Foster 2001-02-09 23:15:32 UTC
We (Red Hat) should really try to resolve this before next release.

Comment 2 Jeff Johnson 2001-02-10 15:28:10 UTC
Fixed in rpm-4.0.2-0.36.

Comment 3 Gerald Teschl 2001-02-12 10:11:08 UTC
BTW: Shouldnt it read "does not appear to be an RPM package"? (a-> an)

Comment 4 Jeff Johnson 2001-02-21 18:26:46 UTC
*** Bug 3179 has been marked as a duplicate of this bug. ***