diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/lsyncd.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/lsyncd.rb b/Library/Formula/lsyncd.rb index 68e42918a..33518cd7b 100644 --- a/Library/Formula/lsyncd.rb +++ b/Library/Formula/lsyncd.rb @@ -15,7 +15,6 @@ class Lsyncd < Formula # This is an artificial requirement, the resource below is incomplete depends_on :macos => :lion - osx_version = `sw_vers -productVersion`.strip xnu_headers = { "10.7.5" => ['xnu-1699.32.7.tar.gz', 'da3df48952b40ad3b8612c7f639b8bf0f92fb414'], "10.8" => ['xnu-2050.7.9.tar.gz', '9aaf1e0b0a148ff303577161fecaf3ea6188aa1b'], @@ -29,8 +28,9 @@ class Lsyncd < Formula "10.9.2" => ['xnu-2422.1.72.tar.gz', 'c7bdc40396df3c51ece934c0e3b4a19b063ea34c'], } - if xnu_headers.key? osx_version - tarball, checksum = xnu_headers.fetch(osx_version) + # TODO wrap MACOS_FULL_VERSION in a MacOS module method + if xnu_headers.key? MACOS_FULL_VERSION + tarball, checksum = xnu_headers.fetch(MACOS_FULL_VERSION) resource 'xnu' do url "http://www.opensource.apple.com/tarballs/xnu/#{tarball}" sha1 checksum |
