From 5cecf67afd4e27e209c592fa3595b32991f0df19 Mon Sep 17 00:00:00 2001 From: hisham Date: Sun, 11 Oct 2009 06:41:23 +0000 Subject: cleanup rock tree git-svn-id: http://luarocks.org/svn/luarocks/trunk@91 9ca3f7c1-7366-0410-b1a3-b5c78f85698c --- src/luarocks/rep.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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) end fs.make_dir(dir.dir_name(target)) ok, err = move_fn(source, target) + fs.remove_dir_tree_if_empty(dir.dir_name(source)) if not ok then return nil, err end return true end -- cgit v1.2.3-55-g6feb