diff --git a/lib/repository_pool.c b/lib/repository_pool.c index 46445657..ff6526a2 100644 --- a/lib/repository_pool.c +++ b/lib/repository_pool.c @@ -122,10 +122,8 @@ xbps_repository_pool_init(void) SIMPLEQ_INSERT_TAIL(&repodata_queue, rdata, chain); } - if (ntotal - nmissing == 0) { - rv = EINVAL; + if (ntotal - nmissing == 0) goto out; - } repolist_initialized = true; repolist_refcnt = 1;