diff options
Diffstat (limited to 'morphlib/morphologyfactory.py')
-rw-r--r-- | morphlib/morphologyfactory.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/morphlib/morphologyfactory.py b/morphlib/morphologyfactory.py index de9e03e5..5a049d04 100644 --- a/morphlib/morphologyfactory.py +++ b/morphlib/morphologyfactory.py @@ -18,22 +18,27 @@ import morphlib import cliapp + class MorphologyFactoryError(cliapp.AppException): pass + class AutodetectError(MorphologyFactoryError): def __init__(self, repo_name, ref): MorphologyFactoryError.__init__(self, "Failed to determine the build system of repo %s at " "ref %s" % (repo_name, ref)) + class NotcachedError(MorphologyFactoryError): def __init__(self, repo_name): MorphologyFactoryError.__init__(self, "Repository %s is not cached locally and there is no " "remote cache specified" % repo_name) + class MorphologyFactory(object): + '''An way of creating morphologies which will provide a default''' def __init__(self, local_repo_cache, remote_repo_cache=None): |