File tar-completion.patch of Package bash-completion

boo#1012212 -- bash tab-autocompletion hangs on TAR-archiving with --create key

---
 completions/tar |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

--- completions/tar
+++ completions/tar	2016-12-14 13:12:09.823140079 +0000
@@ -15,6 +15,10 @@ _tar()
     local tars='@(@(tar|gem|spkg)?(.@(Z|[bgx]z|bz2|lz?(ma)))|t@([abglx]z|b?(z)2))'
 
     case ${words[1]} in
+        --append|--create)
+            _filedir
+            return 0
+            ;;
         --*)
             ;;
         ?(-)*[cr]*f)
@@ -62,7 +66,7 @@ _tar()
             # get name of tar file from command line
             tar=$( sed -e 's/^.* \([^ ]*'$regex'\) .*$/\1/' <<<"${words[@]}" )
             # devise how to untar and list it
-            untar=t${words[1]//[^Jzjyf]/}
+            untar=tf
 
             local IFS=$'\n'
             COMPREPLY=( $( compgen -W "$( printf '%s\n' $( tar $untar $tar \
openSUSE Build Service is sponsored by