diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2013-12-18 23:01:50 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-12-18 23:01:50 -0200 |
commit | e0fc42d99562793236aaac62e73be2b4fc5317c6 (patch) | |
tree | 944365083fbe4ea3d3c13629b4c0a824e79df6b8 | |
parent | 0f172cbc35e3585aab443663e7c87f617c272833 (diff) | |
download | luarocks-e0fc42d99562793236aaac62e73be2b4fc5317c6.tar.gz luarocks-e0fc42d99562793236aaac62e73be2b4fc5317c6.tar.bz2 luarocks-e0fc42d99562793236aaac62e73be2b4fc5317c6.zip |
Make default rocks_trees named as well.
-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 | ||