From e6aade53a0d8f5f746b958cac1118b7404c391bf Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 17 Sep 2013 16:19:56 +0200 Subject: [PATCH] xbps_repo_get_pkg_revdeps: ignore invalid repos. --- lib/repo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/repo.c b/lib/repo.c index 7a3d591c..76c559a0 100644 --- a/lib/repo.c +++ b/lib/repo.c @@ -336,6 +336,9 @@ xbps_repo_get_pkg_revdeps(struct xbps_repo *repo, const char *pkg) char *buf = NULL; bool match = false; + if (repo->idx == NULL) + return NULL; + if (((pkgd = xbps_rpool_get_pkg(repo->xhp, pkg)) == NULL) && ((pkgd = xbps_rpool_get_virtualpkg(repo->xhp, pkg)) == NULL)) { errno = ENOENT;