xbps-repo: fix the 'search' target to show a consistent output for inst/uninst pkgs.
Fixes issue #28.
This commit is contained in:
@@ -131,7 +131,7 @@ show_pkg_namedesc(struct xbps_handle *xhp,
|
|||||||
if (xbps_pkgdb_get_pkgd_by_pkgver(xhp, pkgver))
|
if (xbps_pkgdb_get_pkgd_by_pkgver(xhp, pkgver))
|
||||||
inststr = "[*]";
|
inststr = "[*]";
|
||||||
else
|
else
|
||||||
inststr = "[ ] ";
|
inststr = "[-]";
|
||||||
|
|
||||||
len = strlen(inststr) + strlen(tmp) + strlen(desc) + 1;
|
len = strlen(inststr) + strlen(tmp) + strlen(desc) + 1;
|
||||||
if (len > rsd->maxcols) {
|
if (len > rsd->maxcols) {
|
||||||
|
Reference in New Issue
Block a user