6:219d7a7304f8 | 7:038275cd92ed |
---|---|
1 | 1 |
2 module("dependency", package.seeall) | 2 --@module dependency |
3 | 3 |
4 require('lfs') | 4 local dependency={} |
5 | 5 |
6 function simple_update_check(tgt, srcs) | 6 lfs=require('lfs') |
7 | |
8 function dependency.simple_update_check(tgt, srcs) | |
7 local a=lfs.attributes(tgt) | 9 local a=lfs.attributes(tgt) |
8 if not a then | 10 if not a then |
9 return true | 11 return true |
10 end | 12 end |
11 for _, src in ipairs(srcs) do | 13 for _, src in ipairs(srcs) do |
14 return true | 16 return true |
15 end | 17 end |
16 end | 18 end |
17 return false | 19 return false |
18 end | 20 end |
21 | |
22 return dependency |