Package conary :: Module queryrep
[hide private]
[frames] | no frames]

Module queryrep

source code

Provides the output for the "conary repquery" command

Classes [hide private]
  DiffDisplay
Functions [hide private]
None
displayTroves(cfg, troveSpecs=[], pathList=[], whatProvidesList=[], versionFilter=1, flavorFilter=2, useAffinity=False, info=False, digSigs=False, showDeps=False, showBuildReqs=False, ls=False, lsl=False, ids=False, sha1s=False, tags=False, fileDeps=False, fileVersions=False, fileFlavors=False, showTroves=False, recurse=None, showAllTroves=False, weakRefs=False, showTroveFlags=False, alwaysDisplayHeaders=False, troveTypes=1)
Displays information about troves found in repositories
source code
troveTupleList (list of (name, version, flavor) tuples)
getTrovesToDisplay(repos, troveSpecs, pathList, whatProvidesList, versionFilter, flavorFilter, labelPath, defaultFlavor, affinityDb, troveTypes=1)
Finds troves that match the given trove specifiers, using the current configuration, and parameters
source code
 
getTrovesByPath(repos, pathList, versionFilter, flavorFilter, labelPath, defaultFlavor) source code
 
diffTroves(cfg, troveSpec, withTroveDeps=False, withFileTags=False, withFileVersions=False, withFileDeps=False, withFileContents=False, showLabels=False, fullVersions=False, fullFlavors=False, showEmptyDiffs=False, withBuildReqs=False, withFiles=False, withFilesStat=False) source code
 
_diffTroveCollections(oldTrv, newTrv) source code
 
_diffTroveFlavors(oldTrv, newTrv) source code
 
_diffTroveDeps(oldTrv, newTrv, depKeys) source code
 
_diffBuildRequirements(oldTrv, newTrv) source code
 
_diffFiles(changeset, oldTrv, newTrv) source code
 
_diffNV(dict1, dict2)
Diffs two dictionaries of NV objects, keyed on N, with V as value Return a 3-item tuple: added, removed, changed Added and removed are NV lists changed is a list of (n, oldV, newV)
source code
 
formatVF(vf, showLabels=False, fullVersions=False, fullFlavors=False) source code
 
_splitVF(vf) source code
Variables [hide private]
  VERSION_FILTER_ALL = 0
  VERSION_FILTER_LATEST = 1
  VERSION_FILTER_LEAVES = 2
  FLAVOR_FILTER_ALL = 0
  FLAVOR_FILTER_AVAIL = 1
  FLAVOR_FILTER_BEST = 2
  FLAVOR_FILTER_EXACT = 3
Function Details [hide private]

displayTroves(cfg, troveSpecs=[], pathList=[], whatProvidesList=[], versionFilter=1, flavorFilter=2, useAffinity=False, info=False, digSigs=False, showDeps=False, showBuildReqs=False, ls=False, lsl=False, ids=False, sha1s=False, tags=False, fileDeps=False, fileVersions=False, fileFlavors=False, showTroves=False, recurse=None, showAllTroves=False, weakRefs=False, showTroveFlags=False, alwaysDisplayHeaders=False, troveTypes=1)

source code 
Displays information about troves found in repositories
Parameters:
  • cfg (conarycfg.ConaryConfiguration) - conary config
  • troveSpecs (list of troveSpecs (n[=v][[f]])) - troves to search for
  • versionFilter (bool) - add documentation here. Check man page for general description
  • flavorFilter (bool) - add documentation here. Check man page for general description.
  • useAffinity (bool) - If False, disallow affinity database use.
  • info (bool) - If true, display general information about the trove
  • digSigs (bool) - If true, display digital signatures for a trove.
  • showBuildReqs (bool) - If true, display the versions and flavors of the build requirements that were used to build the given troves
  • showDeps (bool) - If true, display provides and requires information for the trove.
  • ls (bool) - If true, list files in the trove
  • lsl (bool) - If true, list files in the trove + ls -l information
  • ids (bool) - If true, list pathIds for files in the troves
  • sha1s (bool) - If true, list sha1s for files in the troves
  • tags (bool) - If true, list tags for files in the troves
  • fileDeps (bool) - If true, print file-level dependencies
  • fileVersions (bool) - If true, print fileversions
  • showTroves (bool) - If true, display byDefault True child troves of this trove
  • recurse (bool) - display child troves of this trove, recursively
  • showAllTroves (bool) - If true, display all byDefault False child troves of this trove
  • weakRefs (bool) - display both weak and strong references of this trove.
  • showTroveFlags (bool) - display [<flags>] list with information about the given troves.
  • alwaysDisplayHeaders (bool) - If true, display headers even when listing files.
Returns: None

getTrovesToDisplay(repos, troveSpecs, pathList, whatProvidesList, versionFilter, flavorFilter, labelPath, defaultFlavor, affinityDb, troveTypes=1)

source code 
Finds troves that match the given trove specifiers, using the current configuration, and parameters
Parameters:
  • repos (repository.netclient.NetworkRepositoryClient) - a network repository client
  • troveSpecs (list of troveSpecs (n[=v][[f]])) - troves to search for
  • versionFilter - The VERSION_FILTER_* to use. See man page for documentation for now.
  • flavorFilter - The FLAVOR_FILTER_* to use. See man page for documentation for now.
  • labelPath (list) - The labelPath to search
  • defaultFlavor (list) - The default flavor(s) to search with
  • affinityDb (bool) - The affinity database to search with.
Returns: troveTupleList (list of (name, version, flavor) tuples)