aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2012-07-03 17:01:44 -0300
committerHisham Muhammad <hisham@gobolinux.org>2012-07-03 17:02:19 -0300
commit3377827aa8a8a8b42f78473c5045ee50c7eebdd2 (patch)
tree462b9d554491a7d9ff229d6c2ea39c9ecdfc9408 /src
parent9c71ecc867ebf307ae5d9227f4ff0c924e97107d (diff)
downloadluarocks-3377827aa8a8a8b42f78473c5045ee50c7eebdd2.tar.gz
luarocks-3377827aa8a8a8b42f78473c5045ee50c7eebdd2.tar.bz2
luarocks-3377827aa8a8a8b42f78473c5045ee50c7eebdd2.zip
remove .svn directories so they don't show up in .rock files,
the same way we handle .git directories.
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/fetch/svn.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/luarocks/fetch/svn.lua b/src/luarocks/fetch/svn.lua
index 9d00ce5b..a4e952d2 100644
--- a/src/luarocks/fetch/svn.lua
+++ b/src/luarocks/fetch/svn.lua
@@ -40,6 +40,13 @@ function get_sources(rockspec, extract, dest_dir)
40 if not fs.execute(unpack(command)) then 40 if not fs.execute(unpack(command)) then
41 return nil, "Failed fetching files from Subversion." 41 return nil, "Failed fetching files from Subversion."
42 end 42 end
43 fs.change_dir(module)
44 for _, d in ipairs(fs.find(".")) do
45 if dir.base_name(d) == ".svn" then
46 fs.delete(dir.path(store_dir, module, d))
47 end
48 end
49 fs.pop_dir()
43 fs.pop_dir() 50 fs.pop_dir()
44 return module, store_dir 51 return module, store_dir
45end 52end