Bug 26850 - wrong exit code
wrong exit code
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
7.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
David Lawrence
Florence Gold
:
: 3179 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-02-09 13:40 EST by Gerald Teschl
Modified: 2007-04-18 12:31 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-02-26 15:06:33 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Gerald Teschl 2001-02-09 13:40:14 EST
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 18:15:32 EST
We (Red Hat) should really try to resolve this before next release.
Comment 2 Jeff Johnson 2001-02-10 10:28:10 EST
Fixed in rpm-4.0.2-0.36.
Comment 3 Gerald Teschl 2001-02-12 05:11:08 EST
BTW: Shouldnt it read "does not appear to be an RPM package"? (a-> an)
Comment 4 Jeff Johnson 2001-02-21 13:26:46 EST
*** Bug 3179 has been marked as a duplicate of this bug. ***

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