Bug 678935 - rhn_package_manager - option "-s" does work correctly.
Summary: rhn_package_manager - option "-s" does work correctly.
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Satellite Proxy 5
Classification: Red Hat
Component: Server
Version: 540
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 462714
TreeView+ depends on / blocked
 
Reported: 2011-02-20 23:31 UTC by Dimitar Yordanov
Modified: 2014-07-04 13:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-04 13:27:11 UTC
Target Upstream Version:


Attachments (Terms of Use)

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:


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