diff options
| author | Jack Nagel | 2013-11-30 19:38:48 -0600 | 
|---|---|---|
| committer | Jack Nagel | 2013-12-01 17:05:02 -0600 | 
| commit | 2b12d806ebaad325fa87b74e938f2dbc9d908f77 (patch) | |
| tree | 0d0ed0df8d765d9f5c6e4a57c45cc105dfcff7d6 /Library/Homebrew/keg_fix_install_names.rb | |
| parent | cffccf5e42b213f23843f89c5be23e3a8b29c8f1 (diff) | |
| download | homebrew-2b12d806ebaad325fa87b74e938f2dbc9d908f77.tar.bz2 | |
Skip path replacement when it would be a no-op
Diffstat (limited to 'Library/Homebrew/keg_fix_install_names.rb')
| -rw-r--r-- | Library/Homebrew/keg_fix_install_names.rb | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/keg_fix_install_names.rb b/Library/Homebrew/keg_fix_install_names.rb index e60ba72f1..2d79e9180 100644 --- a/Library/Homebrew/keg_fix_install_names.rb +++ b/Library/Homebrew/keg_fix_install_names.rb @@ -64,6 +64,7 @@ class Keg    #   some_variable="/opt/homebrew/Cellar/foo/1.0/lib"    # and add quotes to protect against paths containing spaces.    def replace_pkgconfig_file_path(s, old, new) +    return if old == new      s.gsub!(%r[([\S]+)="?#{Regexp.escape(old)}(.*?)"?$], "\\1=\"#{new}\\2\"")    end  | 
