diff --git a/lib/repository_pool.c b/lib/repository_pool.c index 8b0b54c4..ea561dac 100644 --- a/lib/repository_pool.c +++ b/lib/repository_pool.c @@ -120,6 +120,7 @@ xbps_repository_pool_init(void) free(plist); goto out; } + rv = 0; } } ntotal++; @@ -369,20 +370,6 @@ xbps_repository_pool_find_pkg(const char *pkg, bool bypattern, bool best) int rv = 0; assert(pkg != NULL); - /* - * Initialize repository pool. - */ - if ((rv = xbps_repository_pool_init()) != 0) { - if (rv == ENOTSUP) { - xbps_dbg_printf("%s: empty repository list.\n", - __func__); - } else if (rv != ENOENT && rv != ENOTSUP) { - xbps_dbg_printf("%s: couldn't initialize " - "repository pool: %s\n", __func__, strerror(rv)); - } - xbps_end(); - return NULL; - } rpf = calloc(1, sizeof(*rpf)); if (rpf == NULL)