repo: fix 29608b0 correctly.

In 29608b0 local repos were simply ignored.
This commit is contained in:
Juan RP 2015-10-27 14:22:30 +01:00
parent 6044030ec1
commit 2c81984f48

View File

@ -260,8 +260,8 @@ xbps_repo_open(struct xbps_handle *xhp, const char *url)
/*
* In memory repo sync.
*/
if (xhp->flags & XBPS_FLAG_REPOS_MEMSYNC) {
if (repo->is_remote && repo_open_remote(repo))
if (repo->is_remote && (xhp->flags & XBPS_FLAG_REPOS_MEMSYNC)) {
if (repo_open_remote(repo))
return repo;
goto out;