xbps-query(8: added --cat=FILE mode support.

- This mode prints to stdout the matching FILE stored in a binary package.
- ABI break: renamed xbps_get_pkg_plist_from_binpkg() xbps_binpkg_get_plist().
- Added xbps_binpkg_get_file() as a generic way to get pkg file contents.
- Removed useless comments from xbps_api_impl.h.
This commit is contained in:
Juan RP
2014-11-17 15:45:46 +01:00
parent 3afb9d709d
commit a6516505e9
13 changed files with 144 additions and 205 deletions

View File

@@ -1,4 +1,4 @@
.Dd November 5, 2014
.Dd November 17, 2014
.Dt XBPS-QUERY 8
.Sh NAME
.Nm xbps-query
@@ -211,6 +211,12 @@ If the
option is set, the matched
.Ar PKG
in repositories will be shown.
.It Fl -repository Fl -cat Ar FILE Ar PKG
Prints the file
.Ar FILE
stored in binary package
.Ar PKG
to stdout. This expects an absolute path.
.El
.Sh ENVIRONMENT
.Bl -tag -width XBPS_TARGET_ARCH