From 42396f9c99a86b54f10c8e8736a77770d53947fd Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 5 Dec 2013 17:13:59 -0200 Subject: Fix incorrect condition in test --- src/luarocks/fetch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) name = "rockspec" else name = basename:match("(.*)%.rockspec") - if not name and not basename == "rockspec" then + if not name then return nil, "Filename '"..filename.."' does not look like a rockspec." end end -- cgit v1.2.3-55-g6feb