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

Ville Skyttä ville.skytta at iki.fi
Thu Oct 7 17:40:33 UTC 2010


The following commit has been merged in the master branch:
commit a55f76336311a695d84097068e67e30014926ebf
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Thu Oct 7 20:07:46 2010 +0300

    Trivial cleanups.

diff --git a/completions/rpm b/completions/rpm
index 16870da..0dbcd04 100644
--- a/completions/rpm
+++ b/completions/rpm
@@ -247,7 +247,7 @@ _rpm()
                     --clean --rmsource --rmspec --test --sign --buildroot \
                     --target --nobuild --nodeps --nodirtokens" -- "$cur" ) )
             elif [[ ${COMP_WORDS[1]} == -b* ]]; then
-                _filedir 'spec'
+                _filedir spec
             else
                 _filedir '@(t?(ar.)@([gx]z|bz?(2))|tar.@(lzma|Z))'
             fi
@@ -274,13 +274,12 @@ _rpm()
                 COMPREPLY=( $( compgen -W '--clean --rmsource --rmspec' \
                     -- "$cur" ) )
             else
-                _filedir 'spec'
+                _filedir spec
             fi
             ;;
         --import|--dbpath|--root)
             if [[ "$cur" == -* ]]; then
-            COMPREPLY=( $( compgen -W '--import --dbpath --root' \
-                    -- "$cur" ) )
+            COMPREPLY=( $( compgen -W '--import --dbpath --root' -- "$cur" ) )
             else
                 _filedir
             fi

-- 
bash-completion



More information about the Bash-completion-commits mailing list