Troves are groups of files and other troves, which are included by
reference. By convention, "component" often refers to a trove
with files but no other trove, while a "packages" means a trove
with other troves but no files. While this object allows any mix of file
and package inclusion, in practice conary doesn't allow it.
Trove is a stream primarily to allow it to be frozen and have a
signature computed. It does provide a nice level of consistency as well.
If it were a true stream, diff() would return a string instead of an
object (a TroveChangeSet), but that string would be difficult to handle
(and Conary often directly manipulates TroveChangeSet objects))
|
|
|
|
|
|
|
|
addDigitalSignature(self,
keyId,
skipIntegrityChecks=False)
Signs all of the available digests for this trove and stores those
signatures. |
source code
|
|
|
|
|
|
DigitalSignature
|
|
|
(int, list)
|
|
|
|
|
|
string
|
|
|
boolean
|
verifyDigests(self)
Verifies the digests trove. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| addFile(self,
pathId,
path,
version,
fileId) |
source code
|
|
|
|
|
|
|
| updateFile(self,
pathId,
path,
version,
fileId) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
addTrove(self,
name,
version,
flavor,
presentOkay=False,
byDefault=True,
weakRef=False)
Adds a single version of a trove. |
source code
|
|
|
|
delTrove(self,
name,
version,
flavor,
missingOkay,
weakRef=False)
Removes a single version of a trove. |
source code
|
|
|
list
|
|
|
list
|
iterTroveListInfo(self)
Returns a generator for (name, version, flavor), byDefault,
isStrong |
source code
|
|
|
|
| isStrongReference(self,
name,
version,
flavor) |
source code
|
|
|
|
| includeTroveByDefault(self,
name,
version,
flavor) |
source code
|
|
|
|
| addRedirect(self,
toName,
toBranch,
toFlavor) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
dict
|
applyChangeSet(self,
trvCs,
skipIntegrityChecks=False,
allowIncomplete=False,
skipFiles=False)
Updates the trove from the changes specified in a change set. |
source code
|
|
|
|
mergeTroveListChanges(self,
strongChangeList,
weakChangeList,
redundantOkay=False)
Merges a set of changes to the included trove list into this
trove. |
source code
|
|
|
|
|
|
|
|
|
(TroveChangeSet, fileChangeList, troveChangeList)
|
|
|
|
_diffPackages(self,
addedDict,
removedDict,
getPathHashes)
Matches up the list of troves that have been added to those that
were removed. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
list
|
|
|
|
__init__(self,
name,
version=None,
flavor=None,
changeLog=None,
type=0,
skipIntegrityChecks=False,
setVersion=True)
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature |
source code
|
|
|
Inherited from lib.cstreams'.StreamSet:
__cmp__,
__deepcopy__,
__hash__,
__new__,
find,
freeze,
thaw,
twm
Inherited from object:
__delattr__,
__getattribute__,
__reduce__,
__reduce_ex__,
__setattr__,
__str__
|