dependency.lua

changeset 7
038275cd92ed
parent 3
b2df1b3f2c83
--- a/dependency.lua	Sun May 07 20:02:53 2017 +0100
+++ b/dependency.lua	Tue Jan 16 16:39:48 2018 +0000
@@ -1,9 +1,11 @@
 
-module("dependency", package.seeall)
+--@module dependency
 
-require('lfs')
+local dependency={}
 
-function simple_update_check(tgt, srcs)
+lfs=require('lfs')
+
+function dependency.simple_update_check(tgt, srcs)
     local a=lfs.attributes(tgt)
     if not a then
         return true
@@ -16,3 +18,5 @@
     end
     return false
 end
+
+return dependency

mercurial