squish.lua

changeset 10
d5a4aabb104b
parent 4
9806107f59ea
child 11
10bb5834c6db
equal deleted inserted replaced
9:875ff34ab96c 10:d5a4aabb104b
132 ..chunk:sub(13+intsize+oldlen, -1)); 132 ..chunk:sub(13+intsize+oldlen, -1));
133 end 133 end
134 ]]; 134 ]];
135 end 135 end
136 136
137 print_verbose("Packing modules...");
137 for _, module in ipairs(modules) do 138 for _, module in ipairs(modules) do
138 local modulename, path = module.name, base_path..module.path; 139 local modulename, path = module.name, base_path..module.path;
139 print_verbose("Packing "..modulename.." ("..path..")..."); 140 print_debug("Packing "..modulename.." ("..path..")...");
140 local data, err = fetch.filesystem(path); 141 local data, err = fetch.filesystem(path);
141 if (not data) and module.url then 142 if (not data) and module.url then
142 print_debug("Fetching: ".. module.url:gsub("%?", module.path)) 143 print_debug("Fetching: ".. module.url:gsub("%?", module.path))
143 data, err = fetch.http(module.url:gsub("%?", module.path)); 144 data, err = fetch.http(module.url:gsub("%?", module.path));
144 end 145 end

mercurial