Merge pull request #6620 from scpeters/must_exist_frameworks
os/mac/keg: Frameworks -> MUST_EXIST_DIRECTORIES
This commit is contained in:
commit
cddf402365
@ -3,4 +3,6 @@
|
|||||||
class Keg
|
class Keg
|
||||||
GENERIC_KEG_LINK_DIRECTORIES = (remove_const :KEG_LINK_DIRECTORIES).freeze
|
GENERIC_KEG_LINK_DIRECTORIES = (remove_const :KEG_LINK_DIRECTORIES).freeze
|
||||||
KEG_LINK_DIRECTORIES = (GENERIC_KEG_LINK_DIRECTORIES + ["Frameworks"]).freeze
|
KEG_LINK_DIRECTORIES = (GENERIC_KEG_LINK_DIRECTORIES + ["Frameworks"]).freeze
|
||||||
|
GENERIC_MUST_EXIST_DIRECTORIES = (remove_const :MUST_EXIST_DIRECTORIES).freeze
|
||||||
|
MUST_EXIST_DIRECTORIES = (GENERIC_MUST_EXIST_DIRECTORIES + [HOMEBREW_PREFIX/"Frameworks"]).sort.uniq.freeze
|
||||||
end
|
end
|
||||||
|
|||||||
@ -75,7 +75,7 @@ class Keg
|
|||||||
opt
|
opt
|
||||||
var/homebrew/linked
|
var/homebrew/linked
|
||||||
]
|
]
|
||||||
).map { |dir| HOMEBREW_PREFIX/dir }.uniq.sort.freeze
|
).map { |dir| HOMEBREW_PREFIX/dir }.sort.uniq.freeze
|
||||||
|
|
||||||
# Keep relatively in sync with
|
# Keep relatively in sync with
|
||||||
# https://github.com/Homebrew/install/blob/master/install
|
# https://github.com/Homebrew/install/blob/master/install
|
||||||
@ -98,7 +98,7 @@ class Keg
|
|||||||
HOMEBREW_REPOSITORY,
|
HOMEBREW_REPOSITORY,
|
||||||
Language::Python.homebrew_site_packages,
|
Language::Python.homebrew_site_packages,
|
||||||
]
|
]
|
||||||
).uniq.sort.freeze
|
).sort.uniq.freeze
|
||||||
|
|
||||||
# These paths relative to the keg's share directory should always be real
|
# These paths relative to the keg's share directory should always be real
|
||||||
# directories in the prefix, never symlinks.
|
# directories in the prefix, never symlinks.
|
||||||
|
|||||||
@ -185,6 +185,7 @@ RSpec.configure do |config|
|
|||||||
HOMEBREW_PINNED_KEGS,
|
HOMEBREW_PINNED_KEGS,
|
||||||
HOMEBREW_PREFIX/"var",
|
HOMEBREW_PREFIX/"var",
|
||||||
HOMEBREW_PREFIX/"Caskroom",
|
HOMEBREW_PREFIX/"Caskroom",
|
||||||
|
HOMEBREW_PREFIX/"Frameworks",
|
||||||
HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-cask",
|
HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-cask",
|
||||||
HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-bar",
|
HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-bar",
|
||||||
HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-bundle",
|
HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-bundle",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user