xbps_repo_get_pkg_revdeps: ignore invalid repos.
This commit is contained in:
parent
12546e4b70
commit
e6aade53a0
@ -336,6 +336,9 @@ xbps_repo_get_pkg_revdeps(struct xbps_repo *repo, const char *pkg)
|
|||||||
char *buf = NULL;
|
char *buf = NULL;
|
||||||
bool match = false;
|
bool match = false;
|
||||||
|
|
||||||
|
if (repo->idx == NULL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
if (((pkgd = xbps_rpool_get_pkg(repo->xhp, pkg)) == NULL) &&
|
if (((pkgd = xbps_rpool_get_pkg(repo->xhp, pkg)) == NULL) &&
|
||||||
((pkgd = xbps_rpool_get_virtualpkg(repo->xhp, pkg)) == NULL)) {
|
((pkgd = xbps_rpool_get_virtualpkg(repo->xhp, pkg)) == NULL)) {
|
||||||
errno = ENOENT;
|
errno = ENOENT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user