Package conary :: Module state :: Class SourceState
[hide private]
[frames] | no frames]

Class SourceState

source code

             object --+        
                      |        
lib.cstreams'.StreamSet --+    
                          |    
                trove.Trove --+
                              |
                             SourceState
Known Subclasses:
SourceStateFromLines

Instance Methods [hide private]
 
setPathMap(self, map) source code
 
removeFile(self, pathId) source code
 
addFile(self, pathId, path, version, fileId, isConfig, isAutoSource) source code
 
removeFilePath(self, file) source code
 
_write(self, f)
Returns a string representing file information for this trove trove, which can later be read by the read() method.
source code
 
changeBranch(self, branch) source code
 
getBranch(self) source code
 
setLastMerged(self, ver=None) source code
 
getLastMerged(self) source code
 
getRecipeFileName(self) source code
 
expandVersionStr(self, versionStr) source code
 
copy(self, classOverride=None) source code
 
fileIsConfig(self, pathId, set=None) source code
 
fileIsAutoSource(self, pathId, set=None) source code
 
fileNeedsRefresh(self, pathId, set=None) source code
 
getFileRefreshList(self) source code
 
__init__(self, name, version, branch, changeLog=None, lastmerged=None, troveType=0, **kw) source code

Inherited from trove.Trove: __eq__, __ne__, __repr__, addDigitalSignature, addPrecomputedDigitalSignature, addRedirect, addTrove, applyChangeSet, changeChangeLog, changeFlavor, changeVersion, compatibleWith, computeDigests, computePathHashes, copyMetadata, copyMetadataFromMetadata, delTrove, diff, emptyFileList, fileCount, getAllMetadataItems, getBuildFlavor, getBuildRequirements, getBuildTime, getChangeLog, getCompatibilityClass, getConaryVersion, getDerivedFrom, getDigitalSignature, getFactory, getFile, getFlavor, getLabelPath, getLoadedTroves, getMetadata, getName, getNameVersionFlavor, getPathHashes, getPolicyProviders, getProvides, getRequires, getSearchPath, getSigs, getSize, getSourceName, getTroveCopiedFrom, getTroveInfo, getType, getVersion, hasFile, hasFiles, hasTrove, includeTroveByDefault, invalidateDigests, isCollection, isDerived, isMissing, isRedirect, isRemoved, isStrongReference, iterFileList, iterRedirects, iterTroveList, iterTroveListInfo, mergeTroveListChanges, setBuildFlavor, setBuildRequirements, setBuildTime, setCompatibilityClass, setConaryVersion, setDerivedFrom, setFactory, setIsCollection, setIsDerived, setIsMissing, setLabelPath, setLoadedTroves, setPolicyProviders, setProvides, setRequires, setSearchPath, setSize, setSourceName, setTroveCopiedFrom, updateFile, verifyDigests, verifyDigitalSignatures

Inherited from trove.Trove (private): _diffPackages, _sigString

Inherited from lib.cstreams'.StreamSet: __cmp__, __deepcopy__, __hash__, __new__, find, freeze, thaw, twm

Inherited from object: __delattr__, __getattribute__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Variables [hide private]

Inherited from trove.Trove: ignoreUnknown, streamDict, v0SkipSet

Properties [hide private]
  branch
  fileInfo
  lastMerged
  pathMap

Inherited from trove.Trove: changeLog, flavor, idMap, name, provides, redirects, requires, strongTroves, troveInfo, type, version, weakTroves

Inherited from object: __class__

Method Details [hide private]

removeFile(self, pathId)

source code 
Overrides: trove.Trove.removeFile

addFile(self, pathId, path, version, fileId, isConfig, isAutoSource)

source code 
Overrides: trove.Trove.addFile

_write(self, f)

source code 

Returns a string representing file information for this trove trove, which can later be read by the read() method. This is only used to create the Conary control file when dealing with :source component checkins, so things like trove dependency information is not needed. The format of the string is:

name <name> version <version> branch <branch> (lastmerged <version>)? (factory <name>)? <file count> PATHID1 PATH1 FILEID1 ISCONFIG1 REFRESH1 VERSION1 PATHID2 PATH2 FILEID2 ISCONFIG2 REFRESH2 VERSION2 . . . PATHIDn PATHn FILEIDn ISCONFIGn REFRESHn VERSIONn

copy(self, classOverride=None)

source code 
Overrides: trove.Trove.copy

__init__(self, name, version, branch, changeLog=None, lastmerged=None, troveType=0, **kw)
(Constructor)

source code 
Overrides: trove.Trove.__init__