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

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


The following commit has been merged in the master branch:
commit 8770727a082cf5358331fb5fc6ddd8d662e1415a
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Wed Aug 26 23:58:50 2009 +0300

    Add xz and compress support to rpmbuild -t*/--tarbuild completion.

diff --git a/CHANGES b/CHANGES
index 33d7cb8..05d01be 100644
--- a/CHANGES
+++ b/CHANGES
@@ -103,7 +103,8 @@ 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.
+  * Add xz and compress support and 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 b19d122..1e480dd 100644
--- a/contrib/rpm
+++ b/contrib/rpm
@@ -255,7 +255,7 @@ _rpm()
 		elif [[ ${COMP_WORDS[1]} == -b* ]]; then
 			_filedir 'spec'
 		else
-			_filedir '@(t?(ar.)@(gz|bz?(2))|tar.lzma)'
+			_filedir '@(t?(ar.)@([gx]z|bz?(2))|tar.@(lzma|Z))'
 		fi
 		;;
 	--re@(build|compile))
@@ -267,7 +267,7 @@ _rpm()
 		fi
 		;;
 	--tarbuild)
-		_filedir '@(t?(ar.)@(gz|bz?(2))|tar.lzma)'
+		_filedir '@(t?(ar.)@([gx]z|bz?(2))|tar.@(lzma|Z))'
 		;;
 	--@(re|add)sign)
 		_filedir 'rpm'

-- 
bash-completion



More information about the Bash-completion-commits mailing list