aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/fetch.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fetch.lua b/src/luarocks/fetch.lua
index e98d9cc2..53c9d748 100644
--- a/src/luarocks/fetch.lua
+++ b/src/luarocks/fetch.lua
@@ -233,7 +233,7 @@ function load_rockspec(filename, location)
233 name = "rockspec" 233 name = "rockspec"
234 else 234 else
235 name = basename:match("(.*)%.rockspec") 235 name = basename:match("(.*)%.rockspec")
236 if not name and not basename == "rockspec" then 236 if not name then
237 return nil, "Filename '"..filename.."' does not look like a rockspec." 237 return nil, "Filename '"..filename.."' does not look like a rockspec."
238 end 238 end
239 end 239 end