Bug 860075 - RFE: Enhancement for package_details to print file path
Summary: RFE: Enhancement for package_details to print file path
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 1.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Aron Parsons
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space19
TreeView+ depends on / blocked
 
Reported: 2012-09-24 21:23 UTC by Jose Simonelli
Modified: 2013-03-06 15:57 UTC (History)
3 users (show)

Fixed In Version: spacecmd-1.9.3-1
Clone Of:
Environment:
Last Closed: 2013-03-03 21:58:05 UTC
Embargoed:


Attachments (Terms of Use)

Description Jose Simonelli 2012-09-24 21:23:03 UTC
Description of problem:
Needed a method to query to file path of specific rpm's using spacecmd.  the GUI shows the rpm name and filepath but spacecmd only showed the filename but not the path relative to the satellite server.  The API already had the entry needed in order to display the path and therefore I added it to the packages.py file under the package_details

Version-Release number of selected component (if applicable):
1.7 or 1.8 ?

How reproducible:
run spacecmd with the package_details <some package> and it will only display the Name, Version, Release, Epoch, Arch, File, Size, MD5, number of systems installed, Description and available from channels.  The new patch will also display the path similar to what one can view using the satellite GUI on the specific package. 

Use the following patch to add the Path to spacecmd package.py

# diff -crB a/lib/package.py b/lib/package.py

*** a/lib/package.py    2012-09-24 17:02:32.000000000 -0400
--- b/lib/package.py    2012-09-24 17:06:16.882100417 -0400
***************
*** 71,76 ****
--- 71,77 ----
          print 'Arch:    %s' % details.get('arch_label')
          print
          print 'File:    %s' % details.get('file')
+         print 'Path:    %s' % details.get('path')
          print 'Size:    %s' % details.get('size')
          print 'MD5:     %s' % details.get('md5sum')
          print
  
Actual results:
With the new patch it will now display all the details of the package "including" the file Path within satellite server.

Additional info:
This is an enhancement fix that will allow for people to display the file path of the package details in the event they need to query it using spacecmd

Comment 1 Michael Mráka 2012-10-31 11:00:19 UTC
Reassigning to spacecmd maintainer.

Comment 2 Steven Hardy 2013-02-21 11:45:27 UTC
Reassigning to Aron Parsons, spacecmd maintainer

Comment 3 Aron Parsons 2013-03-03 21:58:05 UTC
Commit ac6135a626a47ae7e8a71577850a7822a187143b.  Thanks Jose.

Comment 4 Jan Pazdziora (Red Hat) 2013-03-04 08:08:33 UTC
Aron, we prefer to set the state to MODIFIED when changes were done for the bugzilla, fill the Fixed In Version (I did that now) and leave it for the release nanny to close the bugzilla when the new Spacewalk release is released.


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