summaryrefslogtreecommitdiff
path: root/morphlib/localartifactcache.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow non-unicode paths to be hardlinked into staging areasbaserock/richardmaw/bugfix/unicode-safe-pathsRichard Maw2014-07-111-3/+12
| | | | | | | | | | Parts of the morphology go into the name of the staging area, so it helps to convert them into a str, so later attempts to join it with another string don't result in a unicode string. pyfilesystem insists that file paths must be unicode. It is incorrect, but we passed something unicode compatible in in the first place, so we can get away with converting it back to a bytestring.
* Add get_source_metadata_filenameRichard Ipsum2014-05-141-1/+4
|
* LocalArtifactCache now takes a an FS objectDaniel Firth2013-12-201-27/+21
|
* lac_tests: Cover list and deleteRichard Maw2013-06-071-2/+2
|
* LAC: implement contents listing and removal by keyRichard Maw2013-06-071-0/+28
|
* Update timestamps on artifact accessRichard Maw2013-06-011-4/+35
|
* Add a way for a local artifact cache to clear itselfLars Wirzenius2012-10-051-0/+13
|
* Add .artifact_filename() to external API of LocalArtifactCacheDaniel Silverstone2012-09-211-4/+4
| | | | | | This adds a way to access the local disk path of the artifact for an artifact. This is necessary to be able to report it to the user.
* python scripts: pep8ize codebaseRichard Maw2012-08-011-3/+3
| | | | | | | | | 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.
* Add RemoteArtifactCache. Move metadata basename code into Artifact.Jannis Pohlmann2012-04-191-2/+1
|
* Remove BuildGraph, compute cache keys based on Artifacts.Jannis Pohlmann2012-04-181-7/+2
| | | | | | | | | | | | With this commit, the ArtifactResolver no longer computes the cache keys when creating Artifact objects. This will have to happen as a post-resolving step (e.g. prior to building or checking whether a local or remote artifact cache has any of the resolved artifacts). The CacheKeyComputer now takes an Artifact object and computes the cache keys using its dependencies. BuildGraph is no longer needed for the CacheKeyComputer unit tests.
* Add Artifact and LocalArtifactCache classes.Jannis Pohlmann2012-04-111-0/+79
An Artifact represents a thing that morph has built. An example would be eglibc-runtime which morph may have built from the eglibc chunk morphology. Another example would be a ready-to-use system image. The LocalArtifactCache allows to store build artifacts in a local directory. Users of this class can ask it whether it has a certain artifact. They can also optain an I/O handle to read the artifact data from. In addition to just abstracting the way artifacts are stored, LocalArtifactCache also allows to store and retrieve metadata for (a) artifacts and (b) sources (the latter requires a cache key to be provided to the LocalArtifactCache).