From 9a7bf5566180464993328f8d969ba94ab1d8114d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Svoboda?= Date: Thu, 24 Nov 2016 18:31:35 +0100 Subject: [PATCH] yaourt: support .pkg.tar extension pacman's completion already supports this extension so just follow suit. Motivation: makepkg produces packages (e.g. from AUR) without compression with its PKGEXT='.pkg.tar' setting, which speeds up building and installing them manually. --- src/_yaourt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/_yaourt b/src/_yaourt index d1cdec4..00c9f43 100644 --- a/src/_yaourt +++ b/src/_yaourt @@ -65,7 +65,7 @@ _yaourt_action_query() { _arguments -s : \ "$_yaourt_opts_common[@]" \ "$_yaourt_opts_query_modifiers[@]" \ - '*:package file:_files -g "*.pkg.tar.*"' + '*:package file:_files -g "*.pkg.tar*"' ;; query_group) _arguments -s : \ @@ -273,7 +273,7 @@ _yaourt() { _yaourt_opts_pkgfile=( '-d[Skip dependency checks]' '-f[Overwrite conflicting files]' - '*:package file:_files -g "*.pkg.tar.*(.)"' + '*:package file:_files -g "*.pkg.tar*(.)"' ) # options for passing to _arguments: subactions for --query command @@ -357,11 +357,11 @@ _yaourt() { "$_yaourt_opts_query_modifiers[@]" \ '*:package file:_files' ;; - -Q*p*) # file *.pkg.tar.* + -Q*p*) # file *.pkg.tar* _arguments -s : \ "$_yaourt_opts_common[@]" \ "$_yaourt_opts_query_modifiers[@]" \ - '*:package file:_files -g "*.pkg.tar.*"' + '*:package file:_files -g "*.pkg.tar*"' ;; -Q*) _yaourt_action_query ;; -R*) _yaourt_action_remove ;;