aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2013-10-18 15:56:37 -0300
committerHisham Muhammad <hisham@gobolinux.org>2013-10-18 15:56:37 -0300
commit30c2877d2f3162978a63f8c0f704eb1c3545d6d2 (patch)
tree8bcdd398b21bc09a7b68c974e8f589b5cd0d0c28
parent88c6b1010984ea0596089858865cca55876e55c3 (diff)
downloadluarocks-30c2877d2f3162978a63f8c0f704eb1c3545d6d2.tar.gz
luarocks-30c2877d2f3162978a63f8c0f704eb1c3545d6d2.tar.bz2
luarocks-30c2877d2f3162978a63f8c0f704eb1c3545d6d2.zip
Fix infinite loop!
-rw-r--r--src/luarocks/repos.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/repos.lua b/src/luarocks/repos.lua
index 23398cbb..08810015 100644
--- a/src/luarocks/repos.lua
+++ b/src/luarocks/repos.lua
@@ -216,7 +216,7 @@ function deploy_files(name, version, wrap_bin_scripts)
216 if err == "untracked" then 216 if err == "untracked" then
217 local backup = target 217 local backup = target
218 repeat 218 repeat
219 backup = target.."~" 219 backup = backup.."~"
220 until not fs.exists(backup) -- slight race condition here, but shouldn't be a problem. 220 until not fs.exists(backup) -- slight race condition here, but shouldn't be a problem.
221 util.printerr("Warning: "..target.." is not tracked by this installation of LuaRocks. Moving it to "..backup) 221 util.printerr("Warning: "..target.." is not tracked by this installation of LuaRocks. Moving it to "..backup)
222 fs.move(target, backup) 222 fs.move(target, backup)