From 401b45fb01aa75d6b766ef9931b9c0c65bc81098 Mon Sep 17 00:00:00 2001 From: Ruiyang Wu Date: Sat, 21 Sep 2024 22:28:24 -0400 Subject: [PATCH] keg: Install `gzip`ed info files during linking 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. --- Library/Homebrew/keg.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 3d8b08d2033e7..d327846e13fd7 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -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