Cache: set :version when writing to file

This commit is contained in:
josh committed 2013-11-05 09:22:46 -05:00
1 parent 338a49ba9c
commit 65a5838605
1 file changed
+1 -1
+1 -1
View File
@@ -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