lib/docman/builders/builder.rb in docman-0.0.48 vs lib/docman/builders/builder.rb in docman-0.0.49
- old
+ new
@@ -30,10 +30,10 @@
info_file = File.join(@context['full_build_path'], 'info.yaml')
info = YAML::load_file(info_file) if File.file? info_file
if info
name = @context['name']
- environment['previous'] = {}
+ environment['previous'] = {} if environment['previous'].nil?
environment['previous'][name] = info
end
end