[EMAIL PROTECTED] wrote:
Hi
I am trying to figure out why a call to rhn-profile-sync on a client
does not update on the spacewalk server.

I have managed to trace back to this file:
/rhnPackageInfo.py

def updatePackageProfile():
    log = up2dateLog.initLog()
    log.log_me("Updating package profile")
    print ("Adding packages to profile blah")
    s = rhnserver.RhnServer()
    s.registration.update_packages(up2dateAuth.getSystemId(),
        rpmUtils.getInstalledPackageList(getArch=1))

The rpmUtils.getInstalledPackageList works fine and gets all the
packages, but I am having difficulty in finding where the
update_packages method is declared and also how it will interact with
the spacewalk server.(xmlrpc I believe)

update_packages should be part of /usr/share/rhn/server/handlers/xmlrpc/registration.py

Thats the server handler the client talks to to send the existing package profile info on the client to be updated on to the server.

Hope this helps,

~ Prad

s = rhnserver.RhnServer()
this class inherits from rpcserver if I am reading the code correctly.

I could also not found the method update_packages in the http://www.redhat.com/spacewalk/documentation/python-doc/

I would really appreciate any help or pointers in understanding where
the code goes next.

Regards

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel


--
--
Pradeep Kilambi
RHN Satellite Engineering
[EMAIL PROTECTED]
Phone: +1 919 754 4285
RHCE # 805008680430554


_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to