aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/cfg.lua1
-rw-r--r--src/luarocks/fs/unix/tools.lua5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua
index 31b3211a..1b4923ab 100644
--- a/src/luarocks/cfg.lua
+++ b/src/luarocks/cfg.lua
@@ -349,6 +349,7 @@ local defaults = {
349 OPENSSL = "openssl", 349 OPENSSL = "openssl",
350 MD5 = "md5", 350 MD5 = "md5",
351 STAT = "stat", 351 STAT = "stat",
352 TOUCH = "touch",
352 353
353 CMAKE = "cmake", 354 CMAKE = "cmake",
354 SEVENZ = "7z", 355 SEVENZ = "7z",
diff --git a/src/luarocks/fs/unix/tools.lua b/src/luarocks/fs/unix/tools.lua
index 150a5ff8..442004ce 100644
--- a/src/luarocks/fs/unix/tools.lua
+++ b/src/luarocks/fs/unix/tools.lua
@@ -346,4 +346,9 @@ function tools.browser(url)
346 return fs.execute(cfg.web_browser, url) 346 return fs.execute(cfg.web_browser, url)
347end 347end
348 348
349function tools.set_time(file, time)
350 file = dir.normalize(file)
351 return fs.execute(vars.TOUCH, "-d", "@"..tostring(time), file)
352end
353
349return tools 354return tools