This is an automated email from the git hooks/post-receive script.

periapt pushed a commit to branch master
in repository devscripts.

commit 28c0f316acf97fd282f5684e169199cfe68fabea
Author: Nicholas Bamber <[email protected]>
Date:   Tue Dec 1 14:04:37 2015 +0000

    adjusted dscextract bash completion to guard against old format (second 
attempt)
---
 scripts/dscextract.bash_completion | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/scripts/dscextract.bash_completion 
b/scripts/dscextract.bash_completion
index 80cdc40..a742f28 100644
--- a/scripts/dscextract.bash_completion
+++ b/scripts/dscextract.bash_completion
@@ -11,12 +11,8 @@ _dscextract()
         declare -a _compreply=( $( compgen -o filenames -G '*.dsc' ) )
         COMPREPLY=( $( compgen -W "${_compreply[*]}"  -- "$cur" ) )
     elif [[ "$prev" == *.dsc ]]; then
-        if [[ -f ${prev/.dsc/.debian.tar.*} ]]; then
-            declare -a _compreply=( $( tar tvf ${prev/.dsc/.debian.tar.*} | 
sed 's! \+! !g' | cut -d' ' -f6 ) )
-            COMPREPLY=( $( compgen -W "${_compreply[*]}"  -- "$cur" ) )
-        else 
-            COMPREPLY=()
-        fi
+        declare -a _compreply=( $( tar tvf ${prev/.dsc/.debian.tar.*} 
2>/dev/null | sed 's! \+! !g' | cut -d' ' -f6 ) )
+        COMPREPLY=( $( compgen -W "${_compreply[*]}"  -- "$cur" ) )
     else
         declare -a _compreply=( $( compgen -W '-f' -o filenames -G '*.dsc' ) )
         COMPREPLY=( $( compgen -W "${_compreply[*]}"  -- "$cur" ) )

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/collab-maint/devscripts.git

_______________________________________________
devscripts-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel

Reply via email to