Bug 426073

Summary: up2date returns exit code 1 when it should return 0
Product: Red Hat Enterprise Linux 2.1 Reporter: Jan Hutař <jhutar>
Component: up2dateAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED WONTFIX QA Contact: Fanny Augustin <fmoquete>
Severity: low Docs Contact:
Priority: low    
Version: 2.1CC: lockhart
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-22 16:34:50 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 Jan Hutař 2007-12-18 08:28:43 UTC
Description of problem:
On RHEL-2.1 "up2date -u" returns exit code 1 when there are no packages to 
update. up2date returns 0 in same situation on the RHEL-3.


Version-Release number of selected component (if applicable):
up2date-2.9.14-1.2.1AS


How reproducible:
always


Steps to Reproduce:
1. # up2date -u   # do all the updates
2. # up2date -u   # -> None of the packages you requested were found, or they 
are already updated.
3. # echo $?


Actual results:
1


Expected results:
0


Additional info:
Setting this as low/low, we just think it should be reported.

From man page:
RETURN CODES
       Update Agent returns 0 on success, 1 on error.