xbps-repo(8): the search target now shows which pkgs are currently installed.

This commit is contained in:
Juan RP 2012-07-31 10:34:10 +02:00
parent f92ce60462
commit eb75041b25
3 changed files with 13 additions and 3 deletions

3
NEWS
View File

@ -1,5 +1,8 @@
xbps-0.16.6 (???): xbps-0.16.6 (???):
* xbps-repo(8): the 'search' target now shows which packages are currently
installed through the '*' character as prefix in the results.
* xbps-repo(8): a new target has been added: 'remove-obsoletes'. This removes * xbps-repo(8): a new target has been added: 'remove-obsoletes'. This removes
obsolete packages found in a local repository; obsoletes are packages not obsolete packages found in a local repository; obsoletes are packages not
registered in repository's index. registered in repository's index.

View File

@ -128,7 +128,11 @@ show_pkg_namedesc(struct xbps_handle *xhp,
tmp[x] = ' '; tmp[x] = ' ';
tmp[x] = '\0'; tmp[x] = '\0';
printf(" %s %s\n", tmp, desc); if (xbps_pkgdb_get_pkgd_by_pkgver(xhp, pkgver))
printf(" * ");
else
printf(" ");
printf("%s %s\n", tmp, desc);
free(tmp); free(tmp);
} }
} }

View File

@ -1,4 +1,4 @@
.Dd July 22, 2012 .Dd July 31, 2012
.Os Void GNU/Linux .Os Void GNU/Linux
.Dt xbps-repo 8 .Dt xbps-repo 8
.Sh NAME .Sh NAME
@ -90,7 +90,10 @@ in its
or or
.Em description .Em description
values in repository pool. Please note that patterns are matched in case values in repository pool. Please note that patterns are matched in case
insensitive mode. Multiple patterns can be specified as arguments. insensitive mode. Multiple patterns can be specified as arguments. Packages that
have the
.Sy *
character as prefix are currently installed.
.It Sy remove-obsoletes Ar /path/to/local/repository .It Sy remove-obsoletes Ar /path/to/local/repository
Removes obsolete packages from Removes obsolete packages from
.Ar repository . .Ar repository .