Trivial cleanups.
This commit is contained in:
parent
4cd7c7c872
commit
a55f763363
@ -247,7 +247,7 @@ _rpm()
|
|||||||
--clean --rmsource --rmspec --test --sign --buildroot \
|
--clean --rmsource --rmspec --test --sign --buildroot \
|
||||||
--target --nobuild --nodeps --nodirtokens" -- "$cur" ) )
|
--target --nobuild --nodeps --nodirtokens" -- "$cur" ) )
|
||||||
elif [[ ${COMP_WORDS[1]} == -b* ]]; then
|
elif [[ ${COMP_WORDS[1]} == -b* ]]; then
|
||||||
_filedir 'spec'
|
_filedir spec
|
||||||
else
|
else
|
||||||
_filedir '@(t?(ar.)@([gx]z|bz?(2))|tar.@(lzma|Z))'
|
_filedir '@(t?(ar.)@([gx]z|bz?(2))|tar.@(lzma|Z))'
|
||||||
fi
|
fi
|
||||||
@ -274,13 +274,12 @@ _rpm()
|
|||||||
COMPREPLY=( $( compgen -W '--clean --rmsource --rmspec' \
|
COMPREPLY=( $( compgen -W '--clean --rmsource --rmspec' \
|
||||||
-- "$cur" ) )
|
-- "$cur" ) )
|
||||||
else
|
else
|
||||||
_filedir 'spec'
|
_filedir spec
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
--import|--dbpath|--root)
|
--import|--dbpath|--root)
|
||||||
if [[ "$cur" == -* ]]; then
|
if [[ "$cur" == -* ]]; then
|
||||||
COMPREPLY=( $( compgen -W '--import --dbpath --root' \
|
COMPREPLY=( $( compgen -W '--import --dbpath --root' -- "$cur" ) )
|
||||||
-- "$cur" ) )
|
|
||||||
else
|
else
|
||||||
_filedir
|
_filedir
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user