diff options
author | classabbyamp <void@placeviolette.net> | 2022-09-02 16:55:43 -0400 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-09-04 09:11:11 +0200 |
commit | 426ecc27ed49218e2d98f0448dff78fb6f23c17a (patch) | |
tree | 26d0ff0fa31fbef0a3c637766e257e4b51071d50 /_xtools | |
parent | 8f5e62949a7ee88b85cf45a62617026549e3040a (diff) | |
download | xtools-426ecc27ed49218e2d98f0448dff78fb6f23c17a.tar.gz xtools-426ecc27ed49218e2d98f0448dff78fb6f23c17a.tar.xz xtools-426ecc27ed49218e2d98f0448dff78fb6f23c17a.zip |
xpkgdiff: improve cross functionality
adds `-R` and `-a` to make it easier to handle cross, but still support setting XBPS_TARGET_ARCH directly.
Diffstat (limited to '_xtools')
-rw-r--r-- | _xtools | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/_xtools b/_xtools index 42b2dc1..91a388b 100644 --- a/_xtools +++ b/_xtools @@ -2,14 +2,15 @@ _xbps # force autoload +_xtools_archs=( {aarch64,armv{6,7}l,i686,x86_64}{,-musl} ) + _xtools_all_packages() { compadd "$@" -- $(xdistdir)/srcpkgs/*(:t) } _xtools_one_arch() { - local archs=( {aarch64,armv{6,7}l,i686,x86_64}{,-musl} ) _arguments : \ - ":architecture:($archs)" + ":architecture:($_xtools_archs)" } _xtools_one_template() { @@ -108,6 +109,7 @@ _xpkgdiff() { '-r[reverse diff (compare local to remote)]' \ '-x[compare package dependencies]' \ '-t[compare the full package dependency tree for -x]' \ + '-a[architecture]:architecture:('"$_xtools_archs"')' \ '*:package:_xtools_just_packages' } |