From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E5A0E1389E2 for ; Sat, 20 Dec 2014 02:15:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B2AA1E0CA9; Sat, 20 Dec 2014 02:15:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 49311E0CA9 for ; Sat, 20 Dec 2014 02:15:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 45923340042 for ; Sat, 20 Dec 2014 02:15:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E0D3ECE22 for ; Sat, 20 Dec 2014 02:15:06 +0000 (UTC) From: "Tim Harder" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tim Harder" Message-ID: <1419041625.210cbb7c3cf71e2d7da85c4e167ce2bdd265da3a.radhermit@gentoo> Subject: [gentoo-commits] proj/zsh-completion:master commit in: src/ X-VCS-Repository: proj/zsh-completion X-VCS-Files: src/_portage X-VCS-Directories: src/ X-VCS-Committer: radhermit X-VCS-Committer-Name: Tim Harder X-VCS-Revision: 210cbb7c3cf71e2d7da85c4e167ce2bdd265da3a X-VCS-Branch: master Date: Sat, 20 Dec 2014 02:15:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 819e6931-380a-4e15-b0ff-434c9d981b4f X-Archives-Hash: d0c9bbf6e2aeaa73c3ad6214824c46dd commit: 210cbb7c3cf71e2d7da85c4e167ce2bdd265da3a Author: Tim Harder gentoo org> AuthorDate: Sat Dec 20 02:12:28 2014 +0000 Commit: Tim Harder gentoo org> CommitDate: Sat Dec 20 02:13:45 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/zsh-completion.git;a=commit;h=210cbb7c _portage: add optional arguments for quickpkg --- src/_portage | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/_portage b/src/_portage index e9639d8..efa3c0e 100644 --- a/src/_portage +++ b/src/_portage @@ -41,16 +41,27 @@ _ebuild () { } -# Stuff for quickpkg - _quickpkg () { + local optional_args + + optional_args=( + "(: -)"{-h,--help}'[show this help message and exit]' + "--umask[umask used during package creation (default is 0077)]:umask (octal)" + "--ignore-default-opts[do not use the QUICKPKG_DEFAULT_OPTS environment variable]" + "--include-config[include all files protected by CONFIG_PROTECT (as a security precaution, default is 'n')]:y or n:((y n))" + "--include-unmodified-config[include files protected by CONFIG_PROTECT that have not been modified since installation (as a security precaution, default is 'n')]:y or n:((y n))" + ) + if compset -P '(\\|)(>=|<=|<|>|=)'; then - _arguments -s \ - '*:installed package:_gentoo_packages installed_versions' + _arguments -s \ + "$optional_args[@]" \ + '*:installed package:_gentoo_packages installed_versions' elif compset -P '(\\|)[/]'; then _path_files -W / -/ else - _arguments '*:installed package:_gentoo_packages installed' + _arguments \ + "$optional_args[@]" \ + '*:installed package:_gentoo_packages installed' fi }