client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 015c750daa164e80cca51bd683270fa1f91352ad
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri Mar 26 12:54:01 2010 +0100
Check the capability in cfg.
This should prevent sendPackages from issuing another
registration.welcome_message XMLRPC call, even if the capabilities
were already retrieved.
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
b/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
index 30185fd..08e0338 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py
@@ -588,7 +588,7 @@ def sendHardware(systemId, hardwareList):
def sendPackages(systemId, packageList):
s = rhnserver.RhnServer()
- if not s.capabilities.hasCapability('xmlrpc.packages.extended_profile', 2):
+ if not cfg['supportsExtendedPackageProfile'] == 2:
# for older satellites and hosted - convert to old format
packageList = convertPackagesFromHashToList(packageList)
s.registration.add_packages(systemId, packageList)
Show replies by date