aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorXu Cheng2016-01-14 19:00:06 +0800
committerXu Cheng2016-01-15 16:26:04 +0800
commit6c8c56a689b6da8d68a3c15524ad216b040ae5ae (patch)
tree4183dc89803ed3ea391f95fb240c0d1bf7b5fa89 /Library/Homebrew/formula.rb
parentb24f1743255efe631a1d8fdd1357c5a4f475fa0e (diff)
downloadbrew-6c8c56a689b6da8d68a3c15524ad216b040ae5ae.tar.bz2
build: store source modified time in tabfile
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 7abcc0b44..884385996 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -78,7 +78,6 @@ class Formula
# This contains all the attributes (e.g. URL, checksum) that apply to the
# stable version of this formula.
# @private
-
attr_reader :stable
# The development {SoftwareSpec} for this {Formula}.
@@ -108,6 +107,10 @@ class Formula
# @private
attr_reader :active_spec_sym
+ # most recent modified time for source files
+ # @private
+ attr_reader :source_modified_time
+
# Used for creating new Homebrew versions of software without new upstream
# versions.
# @see .revision
@@ -1550,6 +1553,7 @@ class Formula
def stage
active_spec.stage do
+ @source_modified_time = active_spec.source_modified_time
@buildpath = Pathname.pwd
env_home = buildpath/".brew_home"
mkdir_p env_home