aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c>2009-10-11 06:41:23 +0000
committerhisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c>2009-10-11 06:41:23 +0000
commit5cecf67afd4e27e209c592fa3595b32991f0df19 (patch)
treee8e6a1383be6016df1c03acd615ab0c03f974e4c /src
parent9afbe4df772b3fabc84a9cec799214317e88c0e9 (diff)
downloadluarocks-5cecf67afd4e27e209c592fa3595b32991f0df19.tar.gz
luarocks-5cecf67afd4e27e209c592fa3595b32991f0df19.tar.bz2
luarocks-5cecf67afd4e27e209c592fa3595b32991f0df19.zip
cleanup rock tree
git-svn-id: http://luarocks.org/svn/luarocks/trunk@91 9ca3f7c1-7366-0410-b1a3-b5c78f85698c
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/rep.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/luarocks/rep.lua b/src/luarocks/rep.lua
index 90b79fcd..6c359bec 100644
--- a/src/luarocks/rep.lua
+++ b/src/luarocks/rep.lua
@@ -213,6 +213,7 @@ function deploy_files(name, version)
213 end 213 end
214 fs.make_dir(dir.dir_name(target)) 214 fs.make_dir(dir.dir_name(target))
215 ok, err = move_fn(source, target) 215 ok, err = move_fn(source, target)
216 fs.remove_dir_tree_if_empty(dir.dir_name(source))
216 if not ok then return nil, err end 217 if not ok then return nil, err end
217 return true 218 return true
218 end 219 end