cmd/formulae,cmd/casks: include casks/formulae in local non-core taps when the API is used
Fixes #15229
This commit is contained in:
parent
106a61c0a6
commit
b43ed6e765
@ -13,9 +13,12 @@ homebrew-casks() {
|
||||
if [[ -z "${HOMEBREW_NO_INSTALL_FROM_API}" &&
|
||||
-f "${HOMEBREW_CACHE}/api/cask_names.txt" ]]
|
||||
then
|
||||
{
|
||||
cat "${HOMEBREW_CACHE}/api/cask_names.txt"
|
||||
echo
|
||||
homebrew-items '*/Casks/*\.rb' '.*/homebrew/homebrew-cask/.*' 's|/Casks/|/|' '^homebrew/cask'
|
||||
} | sort -uf
|
||||
else
|
||||
homebrew-items '*/Casks/*\.rb' '' 's|/Casks/|/|' '^homebrew/cask'
|
||||
homebrew-items '*/Casks/*\.rb' '^\b$' 's|/Casks/|/|' '^homebrew/cask'
|
||||
fi
|
||||
}
|
||||
|
||||
@ -13,9 +13,12 @@ homebrew-formulae() {
|
||||
if [[ -z "${HOMEBREW_NO_INSTALL_FROM_API}" &&
|
||||
-f "${HOMEBREW_CACHE}/api/formula_names.txt" ]]
|
||||
then
|
||||
{
|
||||
cat "${HOMEBREW_CACHE}/api/formula_names.txt"
|
||||
echo
|
||||
homebrew-items '*\.rb' '.*Casks(/.*|$)|.*/homebrew/homebrew-core/.*' 's|/Formula/|/|' '^homebrew/core'
|
||||
} | sort -uf
|
||||
else
|
||||
homebrew-items '*\.rb' 'Casks' 's|/Formula/|/|' '^homebrew/core'
|
||||
homebrew-items '*\.rb' '.*Casks(/.*|$)' 's|/Formula/|/|' '^homebrew/core'
|
||||
fi
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user