java/code/src/com/redhat/rhn/common/db/datasource/xml/System_queries.xml | 3 +-- java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java | 1 - 2 files changed, 1 insertion(+), 3 deletions(-)
New commits: commit 7a5f7b839644bb3a933623b2ba1077eea983f031 Author: Tomas Lestach tlestach@redhat.com Date: Mon Jan 6 10:06:56 2014 +0100
1048090 - Revert "add package ID to array returned by system.listPackages API call"
* the patch returned package name id, not package id * we actually cannot return package id, since a server may have packages installed that are not available on the Spacewalk server
This reverts commit ceccae97e862eed4bd2ea9470a5974fe59f09bb3.
diff --git a/java/code/src/com/redhat/rhn/common/db/datasource/xml/System_queries.xml b/java/code/src/com/redhat/rhn/common/db/datasource/xml/System_queries.xml index c374448..3d78fb8 100644 --- a/java/code/src/com/redhat/rhn/common/db/datasource/xml/System_queries.xml +++ b/java/code/src/com/redhat/rhn/common/db/datasource/xml/System_queries.xml @@ -1446,8 +1446,7 @@ SELECT PN.name, PE.release, coalesce(PE.epoch, ' ') as epoch, PA.name as arch, - SP.installtime, - PN.id + SP.installtime FROM rhnServerPackage SP inner join rhnPackageName PN on PN.id = SP.name_id inner join rhnPackageEVR PE on PE.id = SP.evr_id left join diff --git a/java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java b/java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java index d72e898..9159fe0 100644 --- a/java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java +++ b/java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java @@ -1371,7 +1371,6 @@ public class SystemHandler extends BaseHandler { * @xmlrpc.returntype * #array() * #struct("package") - * #prop("int", "id") * #prop("string", "name") * #prop("string", "version") * #prop("string", "release")
spacewalk-commits@lists.fedorahosted.org