do not run the publish script if the process script failed

This commit is contained in:
Felipe Cecagno 2015-02-02 13:59:29 -02:00
parent 1de10b2339
commit d1bcfe9189

View File

@ -203,6 +203,13 @@ def publish_processed_meeting(recording_dir)
match2 = /([^\/]*).rb$/.match(publish_script)
publish_type = match2[1]
# Do not try to publish a format that failed in the process phase
processed_done = "#{recording_dir}/status/processed/#{meeting_id}-#{publish_type}.done"
if !File.exists?(processed_done)
publish_succeeded = false
next
end
published_done = "#{recording_dir}/status/published/#{meeting_id}-#{publish_type}.done"
next if File.exists?(published_done)