diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/path.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/luarocks/path.lua b/src/luarocks/path.lua index 598e51d9..519f32b0 100644 --- a/src/luarocks/path.lua +++ b/src/luarocks/path.lua | |||
@@ -251,6 +251,11 @@ function path.path_to_module(file) | |||
251 | name = file:match("(.*)%."..cfg.lib_extension.."$") | 251 | name = file:match("(.*)%."..cfg.lib_extension.."$") |
252 | if name then | 252 | if name then |
253 | name = name:gsub(dir.separator, ".") | 253 | name = name:gsub(dir.separator, ".") |
254 | else | ||
255 | name = file:match("(.*)%."..cfg.static_lib_extension.."$") | ||
256 | if name then | ||
257 | name = name:gsub(dir.separator, ".") | ||
258 | end | ||
254 | end | 259 | end |
255 | end | 260 | end |
256 | if not name then name = file end | 261 | if not name then name = file end |