diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 86444883a..dc95f6293 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -123,6 +123,14 @@ class Formula active_spec.downloader end + def cached_download + downloader.cached_location + end + + def clear_cache + downloader.clear_cache + end + # if the dir is there, but it's empty we consider it not installed def installed? (dir = installed_prefix).directory? && dir.children.length > 0 @@ -198,14 +206,6 @@ class Formula Pathname.new("#{HOMEBREW_PREFIX}/opt/#{name}") end - def cached_download - downloader.cached_location - end - - def clear_cache - downloader.clear_cache - end - # Can be overridden to selectively disable bottles from formulae. # Defaults to true so overridden version does not have to check if bottles # are supported. |
