summaryrefslogtreecommitdiff
path: root/morphlib/artifactcachereference.py
Commit message (Collapse)AuthorAgeFilesLines
* python scripts: pep8ize codebaseRichard Maw2012-08-011-4/+5
| | | | | | | | | This was done with the aid of the pep8 script, available by running `easy_install pep8`. It may be worth making this part of ./check, but that will require putting pep8 into the development tools stratum. This should be easy, given pep8 has no external dependencies.
* ArtifactCacheReference: remove from_artifactRichard Maw2012-06-141-4/+0
| | | | | | | | This convenience method is pointless, since it's trivial to make an ArtifactCacheReference from an Artifact with ref = ArtifactCacheReference(artifact.basename()) and it's actually shorter than ref = ArtifactCacheReference.from_artifact(artifact)
* morphlib.artifactcachereference: store basenameRichard Maw2012-06-141-15/+13
| | | | | | | | This is not to make it easier, but to make it not miss if the algorithm for generating cache names changes. Strictly speaking it should store the format string for accessing metadata as well to be compatible, but missing an artifact's metadata is less important.
* morphlib: add artifact cache reference classRichard Maw2012-06-131-0/+43
The artifact cache doesn't need to know the whole of an artifact object to be able to retrieve something from the cache, just the basename. This can be generated from the contents, or just saved itself.