diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2016-03-03 10:35:52 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2016-03-03 15:31:49 +0000 |
commit | e8a67a7d12d2defbf975d707e7513837403d93a2 (patch) | |
tree | 376919bf85989db6a44d3377582d6419e889a864 /morphlib/plugins/anchor_plugin.py | |
parent | bb139ecf1b9de3b221ff1d93c26190a8623d5d33 (diff) | |
download | morph-e8a67a7d12d2defbf975d707e7513837403d93a2.tar.gz |
Hide get_repo() and cache_repo() functions, always use get_updated_repo()
This allows us to simplify a couple of places.
I cannot think of a single situation where'd you want to get the cached
copy of a repo, but not update it. Think about it -- the repo might be
*years* behind the upstream remote.
Change-Id: I60340c7fb33e7bfe871ad30c0a9322a7202548e2
Diffstat (limited to 'morphlib/plugins/anchor_plugin.py')
-rw-r--r-- | morphlib/plugins/anchor_plugin.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/morphlib/plugins/anchor_plugin.py b/morphlib/plugins/anchor_plugin.py index 40cd4c48..62c66c15 100644 --- a/morphlib/plugins/anchor_plugin.py +++ b/morphlib/plugins/anchor_plugin.py @@ -137,9 +137,6 @@ class AnchorPlugin(cliapp.Plugin): for reponame, sources in sources_by_reponame.iteritems(): # UGLY HACK we need to push *FROM* our local repo cache to # avoid cloning everything multiple times. - # This uses get_updated_repo rather than get_repo because the - # BuildCommand.create_source_pool won't cache the repositories - # locally if it can use a remote cache instead. repo = bc.lrc.get_updated_repo(reponame, refs=(s.original_ref for s in sources)) |