From 9c61c44fbae1616d5be762aab7b1ddbe5b0552df Mon Sep 17 00:00:00 2001 From: eban Date: Sun, 9 May 2004 04:25:15 +0000 Subject: [PATCH] * lib/yaml/store.rb: use FileUtils::copy. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ lib/yaml/store.rb | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e5bc8e8b3e..6eaa9cff70 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun May 9 13:24:24 2004 WATANABE Hirofumi + + * lib/yaml/store.rb: use FileUtils::copy. + Sun May 9 12:34:26 2004 Kazuo Saito * regex.c : removed unused file. diff --git a/lib/yaml/store.rb b/lib/yaml/store.rb index 2e74b27221..d36887720f 100644 --- a/lib/yaml/store.rb +++ b/lib/yaml/store.rb @@ -3,6 +3,7 @@ # require 'yaml' require 'pstore' +require 'fileutils' module YAML @@ -40,7 +41,7 @@ module YAML end file.flock(File::LOCK_EX) if orig - File::copy @filename, backup + FileUtils::copy @filename, backup @table = YAML::load( file ) end begin