[macruby-changes] [3418] MacRuby/trunk/rakelib/upstream_git_repo_tasks.rb

source_changes at macosforge.org source_changes at macosforge.org
Tue Feb 2 18:29:16 PST 2010


Revision: 3418
          http://trac.macosforge.org/projects/ruby/changeset/3418
Author:   lsansonetti at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100202/3d477672/attachment.html>


More information about the macruby-changes mailing list