[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 0f3a7ff2a57c89d489e86eecbc0dedc64b7c4703

Ville Skyttä ville.skytta at iki.fi
Sat Oct 23 20:04:00 UTC 2010


The following commit has been merged in the master branch:
commit b31530f125689ccb18375536593fb5a73e67afb2
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Oct 23 19:46:57 2010 +0300

    Add *.tar to rpmbuild -tb filename completions.

diff --git a/CHANGES b/CHANGES
index b2abbc6..b75b821 100644
--- a/CHANGES
+++ b/CHANGES
@@ -15,7 +15,7 @@ bash-completion (2.x)
     and *.awb to mplayer filename completions.
   * Add "short" tarball extensions to unxz, unlzma etc completions.
   * Improve /etc/init.d/*, ipmitool, jar, mencoder, mkdir, mplayer, povray,     
-    sqlite3, wodim, and general help parsing completions.
+    rpmbuild, sqlite3, wodim, and general help parsing completions.
   * Fix p4 and povray completions (Alioth: #312625).
   * Add *.xsd, *.xsl, *.rng, and *.wsdl to xmllint filename completions.
   * Recognize rpm query mode based on the --file, --group, --package, and
diff --git a/completions/rpm b/completions/rpm
index ee56af8..9bd19f6 100644
--- a/completions/rpm
+++ b/completions/rpm
@@ -248,7 +248,7 @@ _rpm()
             elif [[ ${COMP_WORDS[1]} == -b* ]]; then
                 _filedir spec
             else
-                _filedir '@(t?(ar.)@([gx]z|bz?(2))|tar.@(lzma|Z))'
+                _filedir '@(t?(ar.)@([gx]z|bz?(2))|tar?(.@(lzma|Z)))'
             fi
             ;;
         --rebuild|--recompile)
@@ -260,7 +260,7 @@ _rpm()
             fi
             ;;
         --tarbuild)
-            _filedir '@(t?(ar.)@([gx]z|bz?(2))|tar.@(lzma|Z))'
+            _filedir '@(t?(ar.)@([gx]z|bz?(2))|tar?(.@(lzma|Z)))'
             ;;
         --resign|--addsign)
             _filedir '[rs]pm'

-- 
bash-completion



More information about the Bash-completion-commits mailing list