Backed out changeset e82cc0e4b779

Otherwise the refcount in repository pool will initialize/release on every op.
This commit is contained in:
Juan RP 2010-11-25 21:33:14 +01:00
parent c7f6f9f44a
commit b3c8a8ef5c

View File

@ -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)