aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-01-02 04:52:32 +0100
committerAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-01-08 17:31:59 +0100
commit06ef544b47fb7644736a1db31e810cbde9fcd492 (patch)
treea0c975fb835259e64fecdf9ef7d10733ee1eb064
parent41dae2e785e5de7e48c330d7322942af91530add (diff)
downloadpaludis-06ef544b47fb7644736a1db31e810cbde9fcd492.tar.gz
paludis-06ef544b47fb7644736a1db31e810cbde9fcd492.tar.xz
Pass calls to paludis through _call_program.
-rw-r--r--zsh-completion/_paludis_packages16
1 files changed, 8 insertions, 8 deletions
diff --git a/zsh-completion/_paludis_packages b/zsh-completion/_paludis_packages
index 2ed5941..ce45f7a 100644
--- a/zsh-completion/_paludis_packages
+++ b/zsh-completion/_paludis_packages
@@ -9,37 +9,37 @@ local flags prepo packages categories paludis_pkgs
_paludis_packages_update_available() {
if [[ $PREFIX != -* ]]; then
if [[ $PREFIX != */* ]];then
- paludis_pkgs=(${(o)${${(M)${(f)"$(paludis --log-level silent --list-packages)"}:#\* *}##\* }##*/})
+ paludis_pkgs=(${(o)${${(M)${(f)"$(_call_program paludis --log-level silent --list-packages)"}:#\* *}##\* }##*/})
_wanted paludis_pkgs expl "packages" compadd - ${(@)paludis_pkgs}
- categories=(${${(M)${(f)"$(paludis --log-level silent --list-categories)"}:#\* *}##\* })
+ categories=(${${(M)${(f)"$(_call_program paludis --log-level silent --list-categories)"}:#\* *}##\* })
_wanted cat_packages expl "category/packages" compadd -S "/" $categories
else
compset -P '*/'
- packages=(${${${(M)${(f)"$(paludis --log-level silent --category ${IPREFIX//\//} --list-packages)"}:#\* *}##\* }//$IPREFIX/})
+ packages=(${${${(M)${(f)"$(_call_program paludis --log-level silent --category ${IPREFIX//\//} --list-packages)"}:#\* *}##\* }//$IPREFIX/})
_wanted cat_packages expl "category/packages" compadd ${(@)packages}
fi
fi
}
_paludis_packages_update_repository-formats() {
- packages=(${${(M)${(f)"$(paludis --log-level silent --list-repository-formats)"}:#\* *}##\* })
+ packages=(${${(M)${(f)"$(_call_program paludis --log-level silent --list-repository-formats)"}:#\* *}##\* })
compadd ${(@)packages}
}
_paludis_packages_update_installed() {
- packages=(${${(M)${(f)"$(paludis --log-level silent --repository installed --list-packages)"}:#\* *}##\* })
+ packages=(${${(M)${(f)"$(_call_program paludis --log-level silent --repository installed --list-packages)"}:#\* *}##\* })
compadd ${(@)packages}
}
_paludis_packages_update_categories() {
- packages=(${${${(M)${(f)"$(paludis --log-level silent --list-categories)"}:#\* *}##\* }:#*(virtual|installed)*})
+ packages=(${${${(M)${(f)"$(_call_program paludis --log-level silent --list-categories)"}:#\* *}##\* }:#*(virtual|installed)*})
compadd ${(@)packages}
}
_paludis_packages_update_repositories() {
- packages=(${${${(M)${(f)"$(paludis --log-level silent --list-repositories)"}:#\* *}##\* }:#*(virtual|installed)*})
+ packages=(${${${(M)${(f)"$(_call_program paludis --log-level silent --list-repositories)"}:#\* *}##\* }:#*(virtual|installed)*})
compadd ${(@)packages}
}
_paludis_packages_update_sets() {
- packages=(${${${(M)${(f)"$(paludis --log-level silent --list-sets)"}:#\* *}##\* }:#*(virtual|installed)*})
+ packages=(${${${(M)${(f)"$(_call_program paludis --log-level silent --list-sets)"}:#\* *}##\* }:#*(virtual|installed)*})
compadd ${(@)packages}
}
_paludis_packages() {