[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 8770727a082cf5358331fb5fc6ddd8d662e1415a

Ville Skyttä ville.skytta at iki.fi
Wed Aug 26 20:59:37 UTC 2009


The following commit has been merged in the master branch:
commit 2bef79059c14632a8ba7a0837ea60827773f24f4
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Wed Aug 26 23:46:13 2009 +0300

    Add more tarball filename extensions to rpmbuild -t*/--tarbuild completion.

diff --git a/CHANGES b/CHANGES
index 5313884..33d7cb8 100644
--- a/CHANGES
+++ b/CHANGES
@@ -103,6 +103,7 @@ bash-completion (1.x)
   * Complete bzcat and zcat only on compressed files.
   * Do not require a dot in bzcmp, bzdiff, bz*grep, zcmp, zdiff, z*grep, zless,
     and zmore filename completions.
+  * Add more tarball filename extensions to rpmbuild -t*/--tarbuild completion.
 
   [ Todd Zullinger ]
   * Make yum complete on filenames after install, deplist, update and upgrade
diff --git a/contrib/rpm b/contrib/rpm
index e6ede17..b19d122 100644
--- a/contrib/rpm
+++ b/contrib/rpm
@@ -255,7 +255,7 @@ _rpm()
 		elif [[ ${COMP_WORDS[1]} == -b* ]]; then
 			_filedir 'spec'
 		else
-			_filedir '@(tgz|tar.@(gz|bz2|lzma))'
+			_filedir '@(t?(ar.)@(gz|bz?(2))|tar.lzma)'
 		fi
 		;;
 	--re@(build|compile))
@@ -267,7 +267,7 @@ _rpm()
 		fi
 		;;
 	--tarbuild)
-		_filedir '@(tgz|tar.@(gz|bz2|lzma))'
+		_filedir '@(t?(ar.)@(gz|bz?(2))|tar.lzma)'
 		;;
 	--@(re|add)sign)
 		_filedir 'rpm'

-- 
bash-completion



More information about the Bash-completion-commits mailing list