From 9a9caf8fd6edfb82284b7ec6edb2f460400b614c Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 9 Mar 2015 14:14:47 -0300 Subject: We're always using the internal patch module. See #316. --- src/luarocks/cfg.lua | 1 - src/luarocks/fs/unix/tools.lua | 6 ------ 2 files changed, 7 deletions(-) (limited to 'src') diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index 1300b2fa..36c2c2a4 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua @@ -265,7 +265,6 @@ local defaults = { FIND = "find", TEST = "test", CHMOD = "chmod", - PATCH = "patch", ZIP = "zip", UNZIP = "unzip -n", diff --git a/src/luarocks/fs/unix/tools.lua b/src/luarocks/fs/unix/tools.lua index 43174749..0823e74f 100644 --- a/src/luarocks/fs/unix/tools.lua +++ b/src/luarocks/fs/unix/tools.lua @@ -283,12 +283,6 @@ function tools.chmod(pathname, mode) end end ---- Apply a patch. --- @param patchname string: The filename of the patch. -function tools.apply_patch(patchname) - return fs.execute(vars.PATCH.." -p1 -f -i ", patchname) -end - --- Unpack an archive. -- Extract the contents of an archive, detecting its format by -- filename extension. -- cgit v1.2.3-55-g6feb