diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2013-12-05 17:13:59 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-12-05 17:13:59 -0200 |
commit | 42396f9c99a86b54f10c8e8736a77770d53947fd (patch) | |
tree | 55da9f2326cbccbf5b6d44d9510ce74e3b7459a6 /src | |
parent | a1f62e69ee7fdb1dfd6dc36aad48e1306a70bb14 (diff) | |
download | luarocks-42396f9c99a86b54f10c8e8736a77770d53947fd.tar.gz luarocks-42396f9c99a86b54f10c8e8736a77770d53947fd.tar.bz2 luarocks-42396f9c99a86b54f10c8e8736a77770d53947fd.zip |
Fix incorrect condition in test
Diffstat (limited to '')
-rw-r--r-- | src/luarocks/fetch.lua | 2 |
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 |