diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/core/cfg.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua index 9859c6b3..75075792 100644 --- a/src/luarocks/core/cfg.lua +++ b/src/luarocks/core/cfg.lua | |||
@@ -710,7 +710,7 @@ function cfg.init(lua_data, project_dir, warning) | |||
710 | if cfg.home_tree then | 710 | if cfg.home_tree then |
711 | table.insert(cfg.rocks_trees, { name = "user", root = cfg.home_tree } ) | 711 | table.insert(cfg.rocks_trees, { name = "user", root = cfg.home_tree } ) |
712 | end | 712 | end |
713 | if hardcoded.PREFIX then | 713 | if hardcoded.PREFIX and hardcoded.PREFIX ~= cfg.home_tree then |
714 | table.insert(cfg.rocks_trees, { name = "system", root = hardcoded.PREFIX } ) | 714 | table.insert(cfg.rocks_trees, { name = "system", root = hardcoded.PREFIX } ) |
715 | end | 715 | end |
716 | end | 716 | end |