Don't initialize repository pool via xbps_init, instead in repository_pool public funcs.

That way we can avoid having to sync all remote repositories for any code
using xbps_init()!
This commit is contained in:
Juan RP
2011-06-22 11:55:02 +02:00
parent 12d488ec47
commit 74ce033d45
3 changed files with 29 additions and 19 deletions

View File

@ -123,20 +123,6 @@ xbps_init(struct xbps_handle *xh)
xbps_dbg_printf("%s: fetch_timeout: %zu\n", __func__,
xhp->fetch_timeout);
/*
* 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 rv;
}
}
/*
* Initialize regpkgdb dictionary.
*/