From 2c81984f482ec4699e993bed339dcd74ef3b9c31 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 27 Oct 2015 14:22:30 +0100 Subject: [PATCH] repo: fix 29608b0 correctly. In 29608b0 local repos were simply ignored. --- lib/repo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/repo.c b/lib/repo.c index 3a6f6609..2ef64033 100644 --- a/lib/repo.c +++ b/lib/repo.c @@ -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;