Updated msys2 to msys2-base-x86_64-20200903

This commit is contained in:
Gator96100 2020-09-07 18:14:14 +02:00
commit 2307d54cb1
18501 changed files with 1684082 additions and 720361 deletions

View file

@ -8,9 +8,9 @@ _cpan2dist()
case $prev in
--format)
# should remove ":" from COMP_WORDBREAKS, but doesn't work (?)
COMPREPLY=( $( compgen -W '$(perl -MCPANPLUS::Dist -e \
COMPREPLY=( $(compgen -W '$(perl -MCPANPLUS::Dist -e \
"print map { \"\$_\n\" } CPANPLUS::Dist->dist_types")' \
-- "$cur" ) )
-- "$cur") )
return
;;
--banlist|--ignorelist|--modulelist|--logfile)
@ -20,16 +20,16 @@ _cpan2dist()
esac
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
else
local cpandirs=( "$HOME/.cpanplus/" "$HOME/.cpan/source/modules/" )
local packagelist
for dir in ${cpandirs[@]}; do
for dir in "${cpandirs[@]}"; do
[[ -d "$dir" && -r "$dir/02packages.details.txt.gz" ]] && \
packagelist="$dir/02packages.details.txt.gz"
done
[[ $packagelist ]] && COMPREPLY=( $( zgrep "^${cur//-/::}" \
$packagelist 2>/dev/null | awk '{print $1}' | command sed -e 's/::/-/g' ) )
[[ $packagelist ]] && COMPREPLY=( $(zgrep "^${cur//-/::}" \
$packagelist 2>/dev/null | awk '{print $1}' | command sed -e 's/::/-/g') )
fi
} &&
complete -F _cpan2dist -o default cpan2dist