Skip to content

Commit

Permalink
keg: Install gziped info files during linking
Browse files Browse the repository at this point in the history
Currently, `brew link` installs `*.info` files to
`#{HOMEBREW_PREFIX}/share/info/dir` using the `install_info` method.
However, some formulae (e.g., `Emacs`) also ship `*.info.gz` files,
which are only `symlink`ed but not installed.

This commit allows `*.info.gz` files to be installed during linking in
addition to the `*.info` files.
  • Loading branch information
ywwry66 committed Sep 22, 2024
1 parent 29c22e0 commit 401b45f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/keg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def to_s

# Locale-specific directories have the form `language[_territory][.codeset][@modifier]`
LOCALEDIR_RX = %r{(locale|man)/([a-z]{2}|C|POSIX)(_[A-Z]{2})?(\.[a-zA-Z\-0-9]+(@.+)?)?}
INFOFILE_RX = %r{info/([^.].*?\.info|dir)$}
INFOFILE_RX = %r{info/([^.].*?\.info(\.gz)?|dir)$}
KEG_LINK_DIRECTORIES = %w[
bin etc include lib sbin share var
].freeze
Expand Down

0 comments on commit 401b45f

Please sign in to comment.