aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-03-09 14:14:47 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-03-09 14:14:47 -0300
commit9a9caf8fd6edfb82284b7ec6edb2f460400b614c (patch)
treea96c5779f6c5e45e65e7be064208f66b9ed9760a
parentc9cc47865ee713ff812eb2393c6723b8d28d59b7 (diff)
downloadluarocks-9a9caf8fd6edfb82284b7ec6edb2f460400b614c.tar.gz
luarocks-9a9caf8fd6edfb82284b7ec6edb2f460400b614c.tar.bz2
luarocks-9a9caf8fd6edfb82284b7ec6edb2f460400b614c.zip
We're always using the internal patch module.
See #316.
-rw-r--r--src/luarocks/cfg.lua1
-rw-r--r--src/luarocks/fs/unix/tools.lua6
2 files changed, 0 insertions, 7 deletions
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 = {
265 FIND = "find", 265 FIND = "find",
266 TEST = "test", 266 TEST = "test",
267 CHMOD = "chmod", 267 CHMOD = "chmod",
268 PATCH = "patch",
269 268
270 ZIP = "zip", 269 ZIP = "zip",
271 UNZIP = "unzip -n", 270 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)
283 end 283 end
284end 284end
285 285
286--- Apply a patch.
287-- @param patchname string: The filename of the patch.
288function tools.apply_patch(patchname)
289 return fs.execute(vars.PATCH.." -p1 -f -i ", patchname)
290end
291
292--- Unpack an archive. 286--- Unpack an archive.
293-- Extract the contents of an archive, detecting its format by 287-- Extract the contents of an archive, detecting its format by
294-- filename extension. 288-- filename extension.