diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-02-25 17:29:43 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-02-25 17:29:43 +0000 |
commit | f5163dd418e342fe6e5fb18625828076130a5e57 (patch) | |
tree | 54d00a636089389ae90204e3bea2da403c0011fb /morphlib/localrepocache.py | |
parent | ffd59b0a5bd76f4013af97e5268278c69c28c81b (diff) | |
parent | 532af11d11003d52fc79cd4719f2b3353640a38b (diff) | |
download | morph-f5163dd418e342fe6e5fb18625828076130a5e57.tar.gz |
Merge branch 'sam/sourceresolver-fixes'
Reviewed-By: Paul Martin <paul.martin@codethink.co.uk>
Reviewed-By: Francisco Redondo Marchena <francisco.marchena@codethink.co.uk>
Diffstat (limited to 'morphlib/localrepocache.py')
-rw-r--r-- | morphlib/localrepocache.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/morphlib/localrepocache.py b/morphlib/localrepocache.py index 9bccb20b..39fbd200 100644 --- a/morphlib/localrepocache.py +++ b/morphlib/localrepocache.py @@ -1,4 +1,4 @@ -# Copyright (C) 2012-2014 Codethink Limited +# Copyright (C) 2012-2015 Codethink Limited # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -204,7 +204,9 @@ class LocalRepoCache(object): if self._tarball_base_url: ok, error = self._clone_with_tarball(repourl, path) if ok: - return self.get_repo(reponame) + repo = self.get_repo(reponame) + repo.update() + return repo else: errors.append(error) self._app.status( |