xbps_repo_get_pkg_revdeps: ignore invalid repos.

This commit is contained in:
Juan RP 2013-09-17 16:19:56 +02:00
parent 12546e4b70
commit e6aade53a0

View File

@ -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;