aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2013-10-29 19:25:57 -0200
committerHisham Muhammad <hisham@gobolinux.org>2013-10-29 19:25:57 -0200
commit33baf1f4b18fbd4612d0c461d182d101e2a5dc90 (patch)
treef2b0af16e316bf58aae7d6560ad1fc916a3e2ae4
parent54fd9122644d8cc2b302cc7e870155059e595da7 (diff)
downloadluarocks-33baf1f4b18fbd4612d0c461d182d101e2a5dc90.tar.gz
luarocks-33baf1f4b18fbd4612d0c461d182d101e2a5dc90.tar.bz2
luarocks-33baf1f4b18fbd4612d0c461d182d101e2a5dc90.zip
Fix inverted logic in recent commit.
-rw-r--r--src/luarocks/admin_remove.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/admin_remove.lua b/src/luarocks/admin_remove.lua
index 45949e3f..8f105baf 100644
--- a/src/luarocks/admin_remove.lua
+++ b/src/luarocks/admin_remove.lua
@@ -50,7 +50,7 @@ local function remove_files_from_server(refresh, rockfiles, server, upload_serve
50 local file = dir.path(local_cache, basename) 50 local file = dir.path(local_cache, basename)
51 util.printout("Removing file "..file.."...") 51 util.printout("Removing file "..file.."...")
52 fs.delete(file) 52 fs.delete(file)
53 if fs.exists(file) then 53 if not fs.exists(file) then
54 nr_files = nr_files + 1 54 nr_files = nr_files + 1
55 else 55 else
56 util.printerr("Failed removing "..file) 56 util.printerr("Failed removing "..file)