Package backend :: Package server :: Package action :: Module packages
[hide private]
[frames] | no frames]

Module packages

source code

Functions [hide private]
 
verify(serverId, actionId, dry_run=0) source code
 
handle_action(serverId, actionId, packagesIn, dry_run=0) source code
 
remove(serverId, actionId, dry_run=0) source code
 
update(serverId, actionId, dry_run=0) source code
 
refresh_list(serverId, actionId, dry_run=0)
Call the equivalent of up2date -p.
source code
 
runTransaction(server_id, action_id, dry_run=0) source code
Variables [hide private]
  __rhnexport__ = ['update', 'remove', 'refresh_list', 'runTrans...
  _query_action_verify_packages = <spacewalk.server.rhnSQL.sql_b...
  _packageStatement_update = '\n select distinct\n pn....
  _packageStatement_remove = '\n select distinct\n pn....
  __package__ = 'backend.server.action'
Function Details [hide private]

refresh_list(serverId, actionId, dry_run=0)

source code 

Call the equivalent of up2date -p.

I.e. update the list of a client's installed packages known by Red Hat's DB.


Variables Details [hide private]

__rhnexport__

Value:
['update', 'remove', 'refresh_list', 'runTransaction', 'verify']

_query_action_verify_packages

Value:
<spacewalk.server.rhnSQL.sql_base.Statement instance at 13998081412948\
8; statement=
  select distinct
           pn.name as name,
           pe.version as version,
           pe.release as release,
           pe.epoch as epoch,
           pa.label as arch
...

_packageStatement_update

Value:
'''
    select distinct
        pn.name as name,
        pe.epoch as epoch,
        pe.version as version,
        pe.release as release,
        pa.label as arch
    from rhnActionPackage ap
...

_packageStatement_remove

Value:
'''
    select distinct
        pn.name as name,
        pe.epoch as epoch,
        pe.version as version,
        pe.release as release,
        pa.label as arch
    from rhnActionPackage ap
...