diff options
author | Levente Polyak <anthraxx@archlinux.org> | 2019-09-12 21:28:34 +0200 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2019-09-28 00:15:48 +0200 |
commit | 5246cb9aa5bdc390c793dc261b28f3439aaad4c0 (patch) | |
tree | 42c391e3fae0eca76c83344c2598d446aa857811 /zsh_completion.in | |
parent | 144f8966608211f85fb492a4cce3c159989dd2eb (diff) | |
download | devtools-5246cb9aa5bdc390c793dc261b28f3439aaad4c0.tar.xz |
checkpkg: add option to avoid keeping the tmp dir
In some cases, like default makechrootpkg execution, the temporary
directory used to assemble the differences is not required. Add an
option to checkpkg that allows to get rid of that directory after
run and call it automatically like that in makechrootpkg.
Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
Diffstat (limited to 'zsh_completion.in')
-rw-r--r-- | zsh_completion.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/zsh_completion.in b/zsh_completion.in index 45429bd..47719e5 100644 --- a/zsh_completion.in +++ b/zsh_completion.in @@ -1,4 +1,4 @@ -#compdef archbuild archco arch-nspawn archrelease commitpkg finddeps makechrootpkg mkarchroot rebuildpkgs extrapkg=commitpkg corepkg=commitpkg testingpkg=commitpkg stagingpkg=commitpkg communitypkg=commitpkg community-testingpkg=commitpkg community-stagingpkg=commitpkg multilibpkg=commitpkg multilib-testingpkg=commitpkg extra-x86_64-build=archbuild testing-x86_64-build=archbuild staging-x86_64-build=archbuild multilib-build=archbuild multilib-testing-build=archbuild multilib-staging-build=archbuild kde-unstable-x86_64-build=archbuild gnome-unstable-x86_64-build=archbuild communityco=archco +#compdef archbuild archco arch-nspawn archrelease commitpkg finddeps makechrootpkg mkarchroot rebuildpkgs extrapkg=commitpkg corepkg=commitpkg testingpkg=commitpkg stagingpkg=commitpkg communitypkg=commitpkg community-testingpkg=commitpkg community-stagingpkg=commitpkg multilibpkg=commitpkg multilib-testingpkg=commitpkg extra-x86_64-build=archbuild testing-x86_64-build=archbuild staging-x86_64-build=archbuild multilib-build=archbuild multilib-testing-build=archbuild multilib-staging-build=archbuild kde-unstable-x86_64-build=archbuild gnome-unstable-x86_64-build=archbuild communityco=archco checkpkg # License: Unspecified m4_include(lib/valid-tags.sh) @@ -54,6 +54,11 @@ _rebuildpkgs_args=( '*:packages:_devtools_completions_all_packages' ) +_checkpkg_args=( + '(-r --rmdir)'{-r,--rmdir}'[Remove the temporary directory]' + '(-h --help)'{-h,--help}'[Display usage]' +) + _devtools_completions_all_packages() { typeset -U packages packages=($(_call_program packages pacman -Sql)) |