squish.lua

changeset 71
e27ab4492cdd
parent 67
2fc48318b8bb
child 80
b70f75414c81
equal deleted inserted replaced
70:0fd43db11abc 71:e27ab4492cdd
213 end 213 end
214 214
215 215
216 print_verbose("Packing modules..."); 216 print_verbose("Packing modules...");
217 for _, module in ipairs(modules) do 217 for _, module in ipairs(modules) do
218 local modulename, path = module.name, base_path..module.path; 218 local modulename, path = module.name, module.path;
219 if module.path:sub(1,1) ~= "/" then
220 path = base_path..module.path;
221 end
219 print_debug("Packing "..modulename.." ("..path..")..."); 222 print_debug("Packing "..modulename.." ("..path..")...");
220 local data, err = fetch.filesystem(path); 223 local data, err = fetch.filesystem(path);
221 if (not data) and module.url then 224 if (not data) and module.url then
222 print_debug("Fetching: ".. module.url:gsub("%?", module.path)) 225 print_debug("Fetching: ".. module.url:gsub("%?", module.path))
223 data, err = fetch.http(module.url:gsub("%?", module.path)); 226 data, err = fetch.http(module.url:gsub("%?", module.path));

mercurial