lib/docman/builders/builder.rb in docman-0.0.50 vs lib/docman/builders/builder.rb in docman-0.0.51
- old
+ new
@@ -28,11 +28,11 @@
clean_changed = environment['clean_changed'].nil? ? true : environment['clean_changed']
add_action('before_execute', {'type' => :clean_changed}, @context) if clean_changed
info_file = File.join(@context['full_build_path'], 'info.yaml')
info = YAML::load_file(info_file) if File.file? info_file
- info['context'] = @context
if info
+ info['context'] = @context
name = @context['name']
environment['previous'] = {} if environment['previous'].nil?
environment['previous'][name] = info
end