From b3c8a8ef5ce27516ceeec8c097b5705290affac1 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 25 Nov 2010 21:33:14 +0100 Subject: [PATCH] Backed out changeset e82cc0e4b779 Otherwise the refcount in repository pool will initialize/release on every op. --- bin/xbps-bin/main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/xbps-bin/main.c b/bin/xbps-bin/main.c index c9e51e24..51b35a5e 100644 --- a/bin/xbps-bin/main.c +++ b/bin/xbps-bin/main.c @@ -221,6 +221,15 @@ main(int argc, char **argv) } } + if ((rv = xbps_repository_pool_init()) != 0) { + if (rv != ENOENT) { + fprintf(stderr, + "E: couldn't initialize repository pool: %s\n", + strerror(rv)); + goto out; + } + } + if (strcasecmp(argv[0], "list") == 0) { /* Lists packages currently registered in database. */ if (argc < 1 || argc > 2)