diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-04-09 18:37:06 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-04-09 18:37:06 +0100 |
commit | a53bf56bd034b082c816ba58977a2daa0d70c144 (patch) | |
tree | a19c064dc98f45a63aad359e3104124141065b08 /morphlib/localrepocache.py | |
parent | b5b12563d45beb47d797d6befc5104041adad5cd (diff) | |
download | morph-a53bf56bd034b082c816ba58977a2daa0d70c144.tar.gz |
Use the real CachedRepo class in LocalRepoCache
Diffstat (limited to 'morphlib/localrepocache.py')
-rw-r--r-- | morphlib/localrepocache.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/morphlib/localrepocache.py b/morphlib/localrepocache.py index c6ede082..46f57289 100644 --- a/morphlib/localrepocache.py +++ b/morphlib/localrepocache.py @@ -33,14 +33,6 @@ urlparse.uses_fragment.extend(gitscheme) -class CachedRepoPlaceholder(object): - - '''A placeholder until the real CachedRepo exists.''' - - def __init__(self, url, dirname): - pass - - class NoRemote(Exception): def __init__(self, reponame): @@ -194,6 +186,6 @@ class LocalRepoCache(object): for repourl, path in self._base_iterate(reponame): if self._exists(path): - return CachedRepoPlaceholder(repourl, path) + return morphlib.cachedrepo.CachedRepo(repourl, path) raise Exception('Repository %s is not cached yet' % reponame) |