Red Hat Bugzilla – Bug 860075
RFE: Enhancement for package_details to print file path
Last modified: 2013-03-06 10:57:19 EST
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 ?
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 'File: %s' % details.get('file')
+ print 'Path: %s' % details.get('path')
print 'Size: %s' % details.get('size')
print 'MD5: %s' % details.get('md5sum')
With the new patch it will now display all the details of the package "including" the file Path within satellite server.
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
Reassigning to spacecmd maintainer.
Reassigning to Aron Parsons, spacecmd maintainer
Commit ac6135a626a47ae7e8a71577850a7822a187143b. Thanks Jose.
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.