From 5cbfdd5c5ca93c70047794d8e34f09776119211a Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 17 Sep 2014 16:02:46 +0200 Subject: [PATCH] _xbps: complete properties --- data/_xbps | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/data/_xbps b/data/_xbps index b171ad06..9e3f8e97 100644 --- a/data/_xbps +++ b/data/_xbps @@ -10,6 +10,39 @@ _xbps_common=( {-V,--version}'[Show XBPS version]' ) +_xbps_properties=( + architecture + archive-compression-type + automatic-install + build-date + build-options + conf_files + conflicts + filename-sha256 + filename-size + homepage + install-date + install-msg + install-script + installed_size + license + maintainer + metafile-sha256 + packaged-with + pkgver + preserve + provides + remove-msg + remove-script + replaces + repository + shlib-provides + shlib-requires + short_desc + source-revisions + state +) + _xbps_all_packages() { compadd "$@" -- $(xbps-query -Rs '' | sed 's/^... \([^ ]*\)-.* .*/\1/') } @@ -91,7 +124,7 @@ _xbps_query() { _arguments -s : \ $_xbps_common \ {-c,--cachedir=-}'[Full path to cachedir]:cache dir:_files -/' \ - {-p,--property=-}'[Show properties]: ' \ + {-p,--property=-}'[Show properties]:property:($_xbps_properties)' \ --regex'[Use Extended Regular Expressions to match]' \ --fulldeptree'[Full dependency tree for -x/--deps]' \ {-R,--repository}'[Enable repository mode]' \