Package conary :: Package build :: Module grouprecipe
[hide private]
[frames] | no frames]

Module grouprecipe

source code

Classes [hide private]
  AddAllFlags
  _BaseGroupRecipe
Defines a group recipe as collection of groups and provides operations on those groups.
  GroupRecipe
r.GroupRecipe() - Provides the recipe interface for creating a group.
  SingleGroup
  GroupReference
A reference to a set of troves, created by a trove spec, that can be searched like a repository using findTrove.
  TroveCacheWrapper
  TroveCache
Simple cache for relevant information about troves needed for recipes in case they are needed again for other recipes.
Functions [hide private]
 
buildGroups(recipeObj, cfg, repos, callback, troveCache=None)
Main function for finding, adding, and checking the troves requested for the the groupRecipe.
source code
 
findTrovesForGroups(searchSource, defaultSource, groupList, replaceSpecs, resolveSpecs, labelPath, searchFlavor, callback) source code
 
followRedirect(recipeObj, trove, ref, reason) source code
 
processAddAllDirectives(recipeObj, troveMap, cache, repos) source code
 
processOneAddAllDirective(parentGroup, troveTup, flags, recipeObj, cache, repos) source code
 
removeDifferences(group, differenceGroupList, differenceSpecs, troveMap, cache)
If the user has specified removeTrovesAlsoInNewGroup() or removeTrovesAlsoInGroup(), this will go through and remove troves listed in those groups.
source code
 
addTrovesToGroup(group, troveMap, cache, childGroups, repos, groupMap, recipeObj) source code
 
addCopiedComponents(fromGroup, componentsToCopy, componentMap) source code
 
findAllWeakTrovesToRemove(group, primaryErases, cache, childGroups, groupMap) source code
 
checkForRedirects(group, repos, troveCache, buildFlavor) source code
 
addPackagesForComponents(group, repos, troveCache)
Add the containing packages for any components added to group.
source code
 
getResolveSource(searchSource, troveSpecList, troveMap, cache, flavor)
Returns the resolveSource object to be used for dep resolution.
source code
 
resolveGroupDependencies(group, cache, cfg, repos, labelPath, flavor, callback, resolveSource)
Add in any missing dependencies to group
source code
 
checkGroupDependencies(group, cfg, cache, callback) source code
 
calcSizeAndCheckHashes(group, troveCache, callback) source code
 
findSourcesForGroup(repos, recipeObj, callback=None)
Method to find all the sources contained in the group.
source code
 
_findTroves(repos, toFind, labelPath, searchFlavor, defaultSource) source code
Variables [hide private]
  ADD_REASON_ADDED = 0
  ADD_REASON_DEP = 1
  ADD_REASON_INCLUDED = 2
  ADD_REASON_ADDALL = 3
  ADD_REASON_REPLACE = 4
  ADD_REASON_INCLUDED_GROUP = 5
  ADD_REASON_COPIED = 6
  ADDALL_NORECURSE = 0
  ADDALL_RECURSE = 1
  ADDALL_FLATTEN = 2
Function Details [hide private]

addPackagesForComponents(group, repos, troveCache)

source code 
Add the containing packages for any components added to group. Then switch the components to being implicit, but byDefault=True, while other non-specified components are byDefault=False.

getResolveSource(searchSource, troveSpecList, troveMap, cache, flavor)

source code 
Returns the resolveSource object to be used for dep resolution. If no resolveTroves have been added, then will return None.