xbps-repo: implement new target 'pkg-list' to list pkgs from target repo.

This commit is contained in:
Juan RP
2011-12-03 10:37:31 +01:00
parent cb2e941b48
commit 43d85c76b3
9 changed files with 75 additions and 23 deletions

View File

@ -79,7 +79,7 @@ xbps_repository_pool_init(void)
prop_string_t obj;
struct xbps_handle *xhp;
struct repository_pool *rpool;
size_t i, ntotal = 0, nmissing = 0;
size_t i, ntotal = 0, nmissing = 0, repocnt = 0;
const char *repouri;
char *plist;
int rv = 0;
@ -178,7 +178,9 @@ xbps_repository_pool_init(void)
}
free(plist);
xbps_dbg_printf("[rpool] `%s' registered.\n", repouri);
rpool->rpi->rpi_index = repocnt;
SIMPLEQ_INSERT_TAIL(&rpool_queue, rpool, rp_entries);
repocnt++;
}
if (ntotal - nmissing == 0) {