Bug 1315060 - spacecmd package-search doesn't return results when ran from command line, same works from spacecmd shell
Summary: spacecmd package-search doesn't return results when ran from command line, sa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Client
Version: 570
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tomáš Kašpárek
QA Contact: Jan Hutař
URL:
Whiteboard:
Depends On:
Blocks: sat570-triage
TreeView+ depends on / blocked
 
Reported: 2016-03-06 11:10 UTC by Ilan Green
Modified: 2019-12-16 05:28 UTC (History)
5 users (show)

Fixed In Version: spacecmd-2.3.0-5-sat
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-22 12:24:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2190791 0 None None None 2016-03-06 13:51:14 UTC
Red Hat Product Errata RHBA-2016:1645 0 normal SHIPPED_LIVE Satellite 5.7 bug fix update 2016-08-22 16:22:37 UTC

Description Ilan Green 2016-03-06 11:10:03 UTC
Description of problem:
spacecmd package search doesn't return results when ran from a shell script

Version-Release number of selected component (if applicable):
spacecmd-2.3.0-4.el6sat.noarch

How reproducible:
make a shell script
#!/bin/bash
# script to search for packages within red hat satellite
#
/usr/bin/spacecmd -- package_search $1

Steps to Reproduce:
1. create script
2. run "<script>  <package name or partial name>" # Select a package which is available
3.

Actual results:
no results

Expected results:
List of packages matching the search criteria

Additional info:
Per the below link it seems a fix is available in upstream and it is all about changing one line in the spacecmd
https://github.com/spacewalkproject/spacewalk/commit/ffd53a926df0ef997eb40d2dd4eae656208a777e

Comment 1 Tomas Lestach 2016-03-07 08:57:51 UTC
Moving to MODIFIED, since the fix is available in upstream.

Comment 19 errata-xmlrpc 2016-08-22 12:24:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-1645.html


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