[3418] MacRuby/trunk/rakelib/upstream_git_repo_tasks.rb
Revision: 3418 http://trac.macosforge.org/projects/ruby/changeset/3418 Author: lsansonetti@apple.com Date: 2010-02-02 18:29:13 -0800 (Tue, 02 Feb 2010) Log Message: ----------- do not try to access spec/frozen/upstream in case we build with buildit Modified Paths: -------------- MacRuby/trunk/rakelib/upstream_git_repo_tasks.rb Modified: MacRuby/trunk/rakelib/upstream_git_repo_tasks.rb =================================================================== --- MacRuby/trunk/rakelib/upstream_git_repo_tasks.rb 2010-02-03 02:16:45 UTC (rev 3417) +++ MacRuby/trunk/rakelib/upstream_git_repo_tasks.rb 2010-02-03 02:29:13 UTC (rev 3418) @@ -18,7 +18,8 @@ end def upstream_rev - @upstream_rev ||= ENV['REV'] || File.read(upstream_rev_file) + # The buildit build does not contain the spec/frozen/upstream file. + @upstream_rev ||= ENV['REV'] || (ENV['RC_BUILDIT'] ? '0' : File.read(upstream_rev_file)) end def define @@ -150,4 +151,4 @@ end end -end \ No newline at end of file +end
participants (1)
-
source_changes@macosforge.org