aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2013-05-24 21:06:55 -0300
committerHisham Muhammad <hisham@gobolinux.org>2013-05-24 21:08:02 -0300
commitfb8112dd63514bd25db5c655580bed5e7585d186 (patch)
treece372f6bf52c5a24e01bd5995f8ade18861c627b
parentefc261175b27c22a060dab9c23041bfeced1cf23 (diff)
downloadluarocks-fb8112dd63514bd25db5c655580bed5e7585d186.tar.gz
luarocks-fb8112dd63514bd25db5c655580bed5e7585d186.tar.bz2
luarocks-fb8112dd63514bd25db5c655580bed5e7585d186.zip
Avoid overwriting the current rockspec when unpacking a source .zip that happens to contain one.
(Case in point: sha2 0.2.0-1)
-rw-r--r--src/luarocks/cfg.lua2
1 files changed, 1 insertions, 1 deletions
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 = {
235 PATCH = "patch", 235 PATCH = "patch",
236 236
237 ZIP = "zip", 237 ZIP = "zip",
238 UNZIP = "unzip", 238 UNZIP = "unzip -n",
239 GUNZIP = "gunzip", 239 GUNZIP = "gunzip",
240 BUNZIP2 = "bunzip2", 240 BUNZIP2 = "bunzip2",
241 TAR = "tar", 241 TAR = "tar",