From fb8112dd63514bd25db5c655580bed5e7585d186 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 24 May 2013 21:06:55 -0300 Subject: Avoid overwriting the current rockspec when unpacking a source .zip that happens to contain one. (Case in point: sha2 0.2.0-1) --- src/luarocks/cfg.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index 90bed195..f3cbe1fb 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua @@ -235,7 +235,7 @@ local defaults = { PATCH = "patch", ZIP = "zip", - UNZIP = "unzip", + UNZIP = "unzip -n", GUNZIP = "gunzip", BUNZIP2 = "bunzip2", TAR = "tar", -- cgit v1.2.3-55-g6feb