xbps-{bin,repo}: wrap long lines for list, pkg-list and search targets.

Fixes issue #26
This commit is contained in:
Juan RP
2012-07-31 17:50:50 +02:00
parent eb75041b25
commit 1be90e57d7
8 changed files with 89 additions and 49 deletions

View File

@@ -50,11 +50,10 @@ repo_pkg_list_cb(struct xbps_handle *xhp,
lpc.check_state = false;
lpc.state = 0;
lpc.pkgver_len = find_longest_pkgver(xhp, rpi->repo);
if (arg == NULL)
printf("From %s repository ...\n", rpi->uri);
lpc.maxcols = get_maxcols();
(void)xbps_callback_array_iter(xhp, rpi->repo, list_pkgs_in_dict, &lpc);
return 0;
}
@@ -83,9 +82,10 @@ repo_search_pkgs_cb(struct xbps_handle *xhp,
struct repo_search_data *rsd = arg;
(void)done;
rsd->maxcols = get_maxcols();
rsd->pkgver_len = find_longest_pkgver(xhp, rpi->repo);
printf("From %s repository ...\n", rpi->uri);
(void)xbps_callback_array_iter(xhp, rpi->repo, show_pkg_namedesc, rsd);
return 0;
}