Comparison

util/datamanager.lua @ 7201:7a8cffafeff0

Merge 0.9->0.10
author Kim Alvefur <zash@zash.se>
date Thu, 25 Feb 2016 22:37:41 +0100
parent 7002:9ab0d5e69c41
parent 7200:67ac4a0b6e50
child 7202:5bf0ff3882aa
comparison
equal deleted inserted replaced
7199:5846e0bca4ff 7201:7a8cffafeff0
150 150
151 ok, msg = f:write(data); 151 ok, msg = f:write(data);
152 if not ok then break end 152 if not ok then break end
153 153
154 ok, msg = f:close(); 154 ok, msg = f:close();
155 f = nil; -- no longer valid
155 if not ok then break end 156 if not ok then break end
156 157
157 return os_rename(scratch, filename); 158 return os_rename(scratch, filename);
158 until false; 159 until false;
159 160