Exemplo n.º 1
0
 def __init__(self, channel):
      RPMHeaderLoader.__init__(self)
      self.s = rpcServer.getServer()
      self.li = rhnAuth.getLoginInfo()
      self.channels = self.li['X-RHN-Auth-Channels']
      self.channel = channel
      print "i:", "RPMRHNLoader.__init__"
Exemplo n.º 2
0
 def __init__(self, channel):
     RPMHeaderLoader.__init__(self)
     self.s = rpcServer.getServer()
     self.li = rhnAuth.getLoginInfo()
     self.channels = self.li['X-RHN-Auth-Channels']
     self.channel = channel
     print "i:", "RPMRHNLoader.__init__"
Exemplo n.º 3
0
    elif opt in ["--help", "-h"]:
        showHelp()
        sys.exit(0)

# if we're disabled, go down (almost) quietly
if os.path.exists(DISABLE_FILE):
    print "RHN service is disabled. Check %s" % DISABLE_FILE
    sys.exit(0)

# retrieve the system_id. This is required.
if not rhnAuth.getSystemId():
    print "ERROR: unable to read system id."
    sys.exit(-1)

# Initialize the server connection...
server = rpcServer.getServer()

# send up the capabality info
headerlist = clientCaps.caps.headerFormat()
for (headerName, value) in headerlist:
    server.add_header(headerName, value)

# the list of caps the client needs
caps = capabilities.Capabilities()



# PORT ME, actually, once the getVersionRelease
# stuff is ported, this should just work
#try:
#    rhnAuth.maybeUpdateVersion()
Exemplo n.º 4
0
    elif opt in ["--help", "-h"]:
        showHelp()
        sys.exit(0)

# if we're disabled, go down (almost) quietly
if os.path.exists(DISABLE_FILE):
    print "RHN service is disabled. Check %s" % DISABLE_FILE
    sys.exit(0)

# retrieve the system_id. This is required.
if not rhnAuth.getSystemId():
    print "ERROR: unable to read system id."
    sys.exit(-1)

# Initialize the server connection...
server = rpcServer.getServer()

# send up the capabality info
headerlist = clientCaps.caps.headerFormat()
for (headerName, value) in headerlist:
    server.add_header(headerName, value)

# the list of caps the client needs
caps = capabilities.Capabilities()

# PORT ME, actually, once the getVersionRelease
# stuff is ported, this should just work
#try:
#    rhnAuth.maybeUpdateVersion()
#except rhnErrors.CommunicationError, e:
#    print e