diff options
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | src/luarocks/cfg.lua | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -166,9 +166,9 @@ write_sysconfig: | |||
166 | echo 'rocks_trees = {' >> "$(DESTDIR)$(CONFIG_FILE)" ;\ | 166 | echo 'rocks_trees = {' >> "$(DESTDIR)$(CONFIG_FILE)" ;\ |
167 | if [ ! -n "$(FORCE_CONFIG)" ] ;\ | 167 | if [ ! -n "$(FORCE_CONFIG)" ] ;\ |
168 | then \ | 168 | then \ |
169 | echo ' home..[[/.luarocks]],' >> "$(DESTDIR)$(CONFIG_FILE)" ;\ | 169 | echo ' { name = [[user]], root = home..[[/.luarocks]] },' >> "$(DESTDIR)$(CONFIG_FILE)" ;\ |
170 | fi ;\ | 170 | fi ;\ |
171 | echo ' [[$(ROCKS_TREE)]]' >> "$(DESTDIR)$(CONFIG_FILE)" ;\ | 171 | echo ' { name = [[system]], root = [[$(ROCKS_TREE)]] }' >> "$(DESTDIR)$(CONFIG_FILE)" ;\ |
172 | echo '}' >> "$(DESTDIR)$(CONFIG_FILE)" ;\ | 172 | echo '}' >> "$(DESTDIR)$(CONFIG_FILE)" ;\ |
173 | fi | 173 | fi |
174 | 174 | ||
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index f66ad1d9..3a5294f5 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua | |||
@@ -168,10 +168,10 @@ end | |||
168 | 168 | ||
169 | if not next(rocks_trees) then | 169 | if not next(rocks_trees) then |
170 | if home_tree then | 170 | if home_tree then |
171 | table.insert(rocks_trees, home_tree) | 171 | table.insert(rocks_trees, { name = "user", root = home_tree } ) |
172 | end | 172 | end |
173 | if site_config.LUAROCKS_ROCKS_TREE then | 173 | if site_config.LUAROCKS_ROCKS_TREE then |
174 | table.insert(rocks_trees, site_config.LUAROCKS_ROCKS_TREE) | 174 | table.insert(rocks_trees, { name = "system", root = site_config.LUAROCKS_ROCKS_TREE } ) |
175 | end | 175 | end |
176 | end | 176 | end |
177 | 177 | ||