Bug 97682 - RPM returns incorrect exit code
Summary: RPM returns incorrect exit code
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: rpm
Version: 2.1
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-06-19 10:24 UTC by moylo
Modified: 2007-11-30 22:06 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-08-21 15:41:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description moylo 2003-06-19 10:24:33 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030516
Mozilla Firebird/0.6

Description of problem:
I am compiling src rpms with the following:


rpm -ba --target i686 apache.spec

exit status '$?' > 1 for a succesful build. This has been fixed in later
versions of RPM but apparently not for the updated rpm versions available for AS2.1

Version-Release number of selected component (if applicable):
rpm-4.0.4-7x.20 

How reproducible:
Always

Steps to Reproduce:
1.rpm -ba --target i686 apache.spec
2.echo $?

    

Actual Results:  although the build was succesful, $? does not equal 0

Expected Results:  if build is succesful, then $? should equal 0

Additional info:

Comment 1 Jeff Johnson 2003-08-21 15:41:15 UTC
Yes, not fixed in AS2.1. Deferred until somewhen.


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