summaryrefslogtreecommitdiff
path: root/tool/make-snapshot
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-04 11:40:11 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-04 11:40:11 +0000
commit2e44efd4d9d9d2956dff437c28dd099085158ad8 (patch)
tree03b8eed9a2a36ea91a8167ccd38e6d5d49b00136 /tool/make-snapshot
parent313cdec1bc083ee376a165eba5095b137f3bf8ec (diff)
* tool/make-snapshot: Exit with EXIT_FAILURE when it fails.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-xtool/make-snapshot8
1 files changed, 7 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 4d5cfc4..81f4cb0 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -265,8 +265,12 @@ ensure
FileUtils.rm_rf(v) if v and !$exported and !$keep_temp
end
+success = true
revisions.collect {|rev| package(rev, destdir)}.flatten.each do |name|
- name or next
+ if !name
+ success = false
+ next
+ end
str = open(name, "rb") {|f| f.read}
md5 = Digest::MD5.hexdigest str
sha = Digest::SHA256.hexdigest str
@@ -277,4 +281,6 @@ revisions.collect {|rev| package(rev, destdir)}.flatten.each do |name|
puts
end
+exit false if !success
+
# vim:fileencoding=US-ASCII sw=2 ts=4 noexpandtab ff=unix