aboutsummaryrefslogtreecommitdiffstats
path: root/tool/make-snapshot
diff options
context:
space:
mode:
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 4d5cfc4c4f..81f4cb0658 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