diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-05-03 14:09:49 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-05-04 14:24:07 +0100 |
commit | 223475d1059e15ee75366354ab1a88dfdf2afac0 (patch) | |
tree | 20b529daaf576906e31b4714bb6380e3e9e49e26 /morphlib/localrepocache.py | |
parent | c2767ba11c3df7da52bcdca8979afbced644a428 (diff) | |
download | morph-223475d1059e15ee75366354ab1a88dfdf2afac0.tar.gz |
Add tests for repo-alias expansion
Diffstat (limited to 'morphlib/localrepocache.py')
-rw-r--r-- | morphlib/localrepocache.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/morphlib/localrepocache.py b/morphlib/localrepocache.py index a3e28d57..a5487cd9 100644 --- a/morphlib/localrepocache.py +++ b/morphlib/localrepocache.py @@ -185,6 +185,12 @@ class LocalRepoCache(object): path = self._cache_name(repourl) yield repourl, path + def pull_url(self, reponame): + '''Expand a possibly shortened repo name to a pull url.''' + + def push_url(self, reponame): + '''Expand a possibly shortened repo name to a push url.''' + def has_repo(self, reponame): '''Have we already got a cache of a given repo?''' for repourl, path in self._base_iterate(reponame): |