From 65a58386059c2e01cc7736f6fbd0c4a33cde8a13 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 5 Nov 2013 09:22:46 -0500 Subject: [PATCH] Cache: set :version when writing to file --- lib/rscons/cache.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rscons/cache.rb b/lib/rscons/cache.rb index cbcf067..8f26300 100644 --- a/lib/rscons/cache.rb +++ b/lib/rscons/cache.rb @@ -67,12 +67,12 @@ module Rscons end @cache[:targets] ||= {} @cache[:directories] ||= {} - @cache[:version] ||= VERSION @lookup_checksums = {} end # Write the cache to disk to be loaded next time. def write + @cache[:version] = VERSION File.open(CACHE_FILE, 'w') do |fh| fh.puts(YAML.dump(@cache)) end