From c9cf412a181c19f76275d1197f123350fbcfe2f5 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 7 May 2012 18:24:26 -0300 Subject: avoid accepting directories, suggested by Themroc@github --- src/luarocks/deps.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/luarocks/deps.lua b/src/luarocks/deps.lua index 194e0e7e..a669ad66 100644 --- a/src/luarocks/deps.lua +++ b/src/luarocks/deps.lua @@ -568,7 +568,7 @@ function check_external_deps(rockspec, mode) end end else - found = fs.exists(dir.path(dirdata.dir, f)) + found = fs.is_file(dir.path(dirdata.dir, f)) end if found then break -- cgit v1.2.3-55-g6feb