[macruby-changes] [3435] MacRuby/trunk/rakelib/upstream_git_repo_tasks.rb
source_changes at macosforge.org
source_changes at macosforge.org
Fri Feb 5 08:48:34 PST 2010
Revision: 3435
http://trac.macosforge.org/projects/ruby/changeset/3435
Author: eloy.de.enige at gmail.com
Date: 2010-02-05 08:48:33 -0800 (Fri, 05 Feb 2010)
Log Message:
-----------
Don't try to read the upstream rev. files unless really needed.
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-05 00:26:35 UTC (rev 3434)
+++ MacRuby/trunk/rakelib/upstream_git_repo_tasks.rb 2010-02-05 16:48:33 UTC (rev 3435)
@@ -18,8 +18,7 @@
end
def upstream_rev
- # The XBS build does not contain the spec/frozen/upstream file.
- @upstream_rev ||= ENV['REV'] || (ENV['RC_XBS'] ? nil : File.read(upstream_rev_file))
+ @upstream_rev ||= ENV['REV'] || File.read(upstream_rev_file)
end
def define
@@ -106,7 +105,7 @@
end
namespace :upstream do
- desc "Creates patch since upstream revision `#{upstream_rev}' and applies it"
+ desc "Creates patch since previous upstream revision and applies it"
task :patch do
patch = File.join(@local_dir, 'upstream_patch.diff')
new_rev = nil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100205/80c3a13a/attachment.html>
More information about the macruby-changes
mailing list