aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2017-02-02 09:11:23 -0800
committerBrian Dolbec <dolsen@gentoo.org>2017-02-02 09:11:23 -0800
commit37415aff57a2a06ae425c5cc0abab3eedf9ec1b4 (patch)
tree32865a143249ebc288b079afce1e7b7fc4ce179c /layman/api.py
parentlayman/cli.py: Typo fix (diff)
parentapi.py: Moves instantiation of rdb to above for-loop (diff)
downloadlayman-37415aff57a2a06ae425c5cc0abab3eedf9ec1b4.tar.gz
layman-37415aff57a2a06ae425c5cc0abab3eedf9ec1b4.tar.bz2
layman-37415aff57a2a06ae425c5cc0abab3eedf9ec1b4.zip
Merge branch 'master' of git+ssh://git.gentoo.org/proj/layman
Diffstat (limited to 'layman/api.py')
-rwxr-xr-xlayman/api.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/layman/api.py b/layman/api.py
index 2c46bb7..73fb72a 100755
--- a/layman/api.py
+++ b/layman/api.py
@@ -384,6 +384,7 @@ class LaymanAPI(object):
success = []
repos = self._check_repo_type(repos, "sync")
db = self._get_installed_db()
+ rdb = self._get_remote_db()
self.output.debug("API.sync(); starting ovl loop", 5)
for ovl in repos:
@@ -406,7 +407,7 @@ class LaymanAPI(object):
try:
self.output.debug("API.sync(); try: self._get_remote_db().select(ovl)", 5)
- ordb = self._get_remote_db().select(ovl)
+ ordb = rdb.select(ovl)
except UnknownOverlayException:
message = 'Overlay "%(repo)s" could not be found in the remote '\
'lists.\nPlease check if it has been renamed and '\