Package pulp :: Package server :: Module comps_util
[hide private]
[frames] | no frames]

Module comps_util

source code

Functions [hide private]
 
yum_group_to_model_group(obj)
Translate a yum.comps.Group to a model.PackageGroup
source code
 
yum_category_to_model_category(obj)
Translate a yum.comps.Category to a model.PackageGroupCategory
source code
 
model_group_to_yum_group(obj)
Translate a model.PackageGroup to a yum.comps.Group
source code
 
model_category_to_yum_category(obj)
Translate a model.PackageGroupCategory to an object that yum.comps.Comps can work with
source code
 
form_comps_xml(ctgs, grps)
Form the XML representation of a 'comps.xml' from model.PackageGroupCategories and model.PackageGroup objects
source code
 
update_repomd_xml_string(repomd_xml, compsxml_checksum, compsxml_timestamp, compsxml_gz_checksum=None, open_compsxml_gz_checksum=None, compsxml_gz_timestamp=None)
Accept input xml string of repomd data and update it with new comps info
source code
 
update_repomd_xml_file(repomd_path, comps_path, comps_gz_path=None)
Update the repomd.xml with the checksum info for comps_path
source code
Variables [hide private]
  log = logging.getLogger(__name__)
Function Details [hide private]

yum_group_to_model_group(obj)

source code 

Translate a yum.comps.Group to a model.PackageGroup

Parameters:
  • obj - yum.comps.Group object
Returns:
model.PackageGroup object

yum_category_to_model_category(obj)

source code 

Translate a yum.comps.Category to a model.PackageGroupCategory

Parameters:
  • obj - yum.comps.Category object
Returns:
model.PackageGroupCategory object

model_group_to_yum_group(obj)

source code 

Translate a model.PackageGroup to a yum.comps.Group

Parameters:
  • obj - model.PackageGroup obj
Returns:
yum.comps.Group object

model_category_to_yum_category(obj)

source code 

Translate a model.PackageGroupCategory to an object that yum.comps.Comps can work with

Parameters:
  • obj - model.PackageGroupCategory object
Returns:
yum.comps.Category

form_comps_xml(ctgs, grps)

source code 

Form the XML representation of a 'comps.xml' from model.PackageGroupCategories and model.PackageGroup objects

Parameters:
  • ctgs - List of model.PackageGroupCategories
  • grps - List of model.PackageGroup
Returns:
unicode string representing XML data for passed in Categories/Groups

update_repomd_xml_string(repomd_xml, compsxml_checksum, compsxml_timestamp, compsxml_gz_checksum=None, open_compsxml_gz_checksum=None, compsxml_gz_timestamp=None)

source code 

Accept input xml string of repomd data and update it with new comps info

Parameters:
  • repomd_xml - string repomd_xml
  • compsxml_checksum - checksum of compsxml file
  • compsxml_timestamp - timestamp of compsxml file
  • compsxml_gz_checksum - checksum of compsxml gzipped file
  • open_compsxml_gz_checksum - checksum of compsxml gzipped file uncompressed
  • compsxml_gz_timestamp - timestamp of compsxml gzipped file

update_repomd_xml_file(repomd_path, comps_path, comps_gz_path=None)

source code 

Update the repomd.xml with the checksum info for comps_path

Parameters:
  • repomd_path - repomd.xml file path
  • comps_path - comps.xml file path
  • comps_gz_path - optional comps.xml.gz file path
Returns:
True if repomd_path has been updated, False otherwise