diff options
| author | Jack Nagel | 2012-12-17 17:05:53 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-12-17 17:18:22 -0600 |
| commit | 3dcce70a6af0a187f6c30e66cef45bee3cae6a6f (patch) | |
| tree | 5ff5af6efba3b34be927cb62b54be2cfedd90eb3 /Library/Homebrew/compat | |
| parent | 68d1dfe5d77781e74cab72f0950484ae58d5e425 (diff) | |
| download | brew-3dcce70a6af0a187f6c30e66cef45bee3cae6a6f.tar.bz2 | |
Better reporting for MacPorts/Fink installations
closes Homebrew/homebrew#15853.
Diffstat (limited to 'Library/Homebrew/compat')
| -rw-r--r-- | Library/Homebrew/compat/compatibility.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/compat/compatibility.rb b/Library/Homebrew/compat/compatibility.rb index 41874e063..f0d6ab0b1 100644 --- a/Library/Homebrew/compat/compatibility.rb +++ b/Library/Homebrew/compat/compatibility.rb @@ -219,6 +219,10 @@ module MacOS extend self 10.8 <= MACOS_VERSION # Actually Mountain Lion or newer end alias_method :mountain_lion_or_newer?, :mountain_lion? + + def macports_or_fink_installed? + not MacOS.macports_or_fink.empty? + end end |
