On 10/17/2011 04:19 PM, Jan Pazdziora wrote:
On Mon, Oct 17, 2011 at 04:05:46PM +0200, Ionuț Arțăriși wrote:

The whole point of this patch for us was so that we could install
suse patches with the special zypper way. In order for that to
happen we need to first check if the server supports this new API
command, so we need a new capability.

So can you please apply this patch? (zypp-plugin-spacewalk currently
depends on this capability being provided to install patches
correctly).

Thank you,
Ionuț
> From 35e7d4257942ac91c21d7120ed5d874032629b72 Mon Sep 17 00:00:00 2001
From: Michael Calmer<m...@suse.de>
Date: Wed, 6 Jul 2011 17:51:04 +0200
Subject: [PATCH] add server capability xmlrpc.errata.patch_names'

---
  backend/server/rhnCapability.py |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/backend/server/rhnCapability.py b/backend/server/rhnCapability.py
index 1259747..ad6c306 100644
--- a/backend/server/rhnCapability.py
+++ b/backend/server/rhnCapability.py
@@ -186,6 +186,7 @@ def _set_server_capabilities():
          'rhncfg.filetype.directory'             : {'version' : 1, 'value' : 
1},
          'xmlrpc.packages.extended_profile'      : {'version' : '1-2', 'value' 
: 1},
          'xmlrpc.packages.suse_products'         : {'version' : 1, 'value' : 
1},
+        'xmlrpc.errata.patch_names'             : {'version' : 1, 'value' : 1},
Nack -- it does not apply cleanly in Spacewalk master. We don't have
that xmlrpc.packages.suse_products at all so I'm affraid something is
getting lost in the translation.

Also, you might want to put the comment you have in the mail to the
commit message so that we have the documentation of this capability
preserved at least in the commit message.

Thanks, this should fix it.
>From cbda448d1f5834a8ebe39d1695ca6bce6cd6b1cc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ionu=C8=9B=20Ar=C8=9B=C4=83ri=C8=99i?= <iartar...@suse.cz>
Date: Mon, 17 Oct 2011 16:43:55 +0200
Subject: [PATCH] add an 'xmlrpc.errata.patch_names' capability

This capability corresponds to the getErrataNamesById action in
xmlrpc.errata. zypp-plugin-spacewalk depends on it for installing SUSE
patches as patches instead of individual packages (i.e. zypper install
patch:PatchName1 patch:PatchName2)
---
 backend/server/rhnCapability.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/backend/server/rhnCapability.py b/backend/server/rhnCapability.py
index fef1f32..5ac0fc6 100644
--- a/backend/server/rhnCapability.py
+++ b/backend/server/rhnCapability.py
@@ -186,6 +186,7 @@ def _set_server_capabilities():
         'rhncfg.content.base64_decode'          : {'version' : 1, 'value' : 1},
         'rhncfg.filetype.directory'             : {'version' : 1, 'value' : 1},
         'xmlrpc.packages.extended_profile'      : {'version' : '1-2', 'value' : 1},
+        'xmlrpc.errata.patch_names'             : {'version' : 1, 'value' : 1},
         'staging_content'                       : {'version' : 1, 'value' : 1},
         'ipv6'                                  : {'version' : 1, 'value' : 1},
     }
-- 
1.7.3.4

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to