Bug 678935

Summary: rhn_package_manager - option "-s" does work correctly.
Product: Red Hat Satellite Proxy 5 Reporter: Dimitar Yordanov <dyordano>
Component: ServerAssignee: Michael Mráka <mmraka>
Status: CLOSED DEFERRED QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 540CC: jhutar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-04 13:27:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 462714    

Description Dimitar Yordanov 2011-02-20 23:31:25 UTC
Description of problem:

This -s option will list all the missing packages (packages uploaded to the RHN Server not present in the local directory).

Version-Release number of selected component (if applicable):
RHN Proxy 5.3 - spacewalk-proxy-package-manager-0.5.7-14.el5sat
Not tested on 5.4 - Blocked by  Bug 677775

How reproducible:
Always

Steps to Reproduce:
1.Install Satellite, RHN Proxy + rhn_package_manager
2.Create Custom Software channel on the Satellite
3.Upload one RPM package with rhn_package_manager to $CUSTOM_CHANNEL: 

rhn_package_manager -c $CUSTOM_CHANNEL SOME.rpm  --username=${RHN_USER} --password=${RHN_PASS} --nosig

4. Remove the RPM from the local directory.

pkg_dir=$(rhn_package_manager -p | egrep "^pkg_dir" | awk -F= '{print $2}')/rhn

rm -fr $pkg_dir/*

5. rhn_package_manager -s -c $CUSTOM_CHANNEL --username=${RHN_USER} --password=${RHN_PASS}

 
Actual results:
No results

Expected results:
The RPM that should be in the local package directory but was removed.


Additional info: