Backed out changeset e82cc0e4b779
Otherwise the refcount in repository pool will initialize/release on every op.
This commit is contained in:
parent
c7f6f9f44a
commit
b3c8a8ef5c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user