diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-10-12 00:48:44 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-10-12 00:48:44 +0900 |
commit | efc0d4cc4d6d2f78e79610365ece32d3cc4e5830 (patch) | |
tree | e2cf1de4308e3b6b24256b2fc9368f33c0191b7d /buildstream/source.py | |
parent | 9dc10cc7102582a7c7127b5d28c1dc1e40d3e0b4 (diff) | |
download | buildstream-efc0d4cc4d6d2f78e79610365ece32d3cc4e5830.tar.gz |
types.py: Moved Consistency definition here from source.py
And slightly touch up the doc strings for Consistency and Scope.
Diffstat (limited to 'buildstream/source.py')
-rw-r--r-- | buildstream/source.py | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/buildstream/source.py b/buildstream/source.py index 6768f6cfc..30883430a 100644 --- a/buildstream/source.py +++ b/buildstream/source.py @@ -145,35 +145,12 @@ import os from collections import Mapping from contextlib import contextmanager -from . import Plugin +from . import Plugin, Consistency from . import _yaml, utils from ._exceptions import BstError, ImplError, ErrorDomain from ._projectrefs import ProjectRefStorage -class Consistency(): - INCONSISTENT = 0 - """Inconsistent - - Inconsistent sources have no explicit reference set. They cannot - produce a cache key, be fetched or staged. They can only be tracked. - """ - - RESOLVED = 1 - """Resolved - - Resolved sources have a reference and can produce a cache key and - be fetched, however they cannot be staged. - """ - - CACHED = 2 - """Cached - - Cached sources have a reference which is present in the local - source cache. Only cached sources can be staged. - """ - - class SourceError(BstError): """This exception should be raised by :class:`.Source` implementations to report errors to the user. |