lib/autoproj/ops/snapshot.rb in autoproj-2.0.0.rc26 vs lib/autoproj/ops/snapshot.rb in autoproj-2.0.0.rc27
- old
+ new
@@ -46,10 +46,10 @@
def save_versions( versions, versions_file, options = Hash.new )
options = Kernel.validate_options options,
replace: false
existing_versions = Array.new
- if !options[:replace] && File.exists?(versions_file)
+ if !options[:replace] && File.exist?(versions_file)
existing_versions = YAML.load( File.read( versions_file ) ) ||
Array.new
end
# create direcotry for versions file first