Module: OS::Linux::FormulaInstaller Private

Extended by:
T::Helpers
Included in:
FormulaInstaller
Defined in:
extend/os/linux/formula_installer.rb

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

Instance Method Summary collapse

Instance Method Details

#fix_dynamic_linkage?(keg) ⇒ Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Fixing dynamic linkage on Linux only relativises absolute symlinks, so skip starting a sandboxed worker for kegs without any.

Parameters:

Returns:

  • (Boolean)


20
# File 'extend/os/linux/formula_installer.rb', line 20

def fix_dynamic_linkage?(keg) = keg.absolute_symlinks?

#fresh_install?(formula) ⇒ Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

Returns:

  • (Boolean)


12
13
14
15
# File 'extend/os/linux/formula_installer.rb', line 12

def fresh_install?(formula)
  !Homebrew::EnvConfig.developer? &&
    !formula.any_version_installed?
end