aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio A. Vargas <savargasqu+git@unal.edu.co>2021-08-21 03:39:14 +0530
committerGitHub <noreply@github.com>2021-08-21 03:39:14 +0530
commitd8142419b044286e47548baf860e7a6234cba859 (patch)
tree2f0668bf1648c479a402f6c6abd7da2f883d42ef
parentf178e54b08e76e2cadfa3151ac9b628087bc7fa4 (diff)
parent126fe78fac799971009dcddcc0695e29d7765a3e (diff)
downloadpaq-d8142419b044286e47548baf860e7a6234cba859.tar.gz
Merge pull request #70 from Borwe/fix1
Fixes For PaqClean
-rw-r--r--.gitignore2
-rw-r--r--lua/paq.lua8
2 files changed, 5 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9264ef3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
1# to tag files
2doc/tags
diff --git a/lua/paq.lua b/lua/paq.lua
index 434c457..f308adc 100644
--- a/lua/paq.lua
+++ b/lua/paq.lua
@@ -149,14 +149,12 @@ local function remove(packdir)
149 end 149 end
150 end 150 end
151 for name, dir in pairs(to_rm) do 151 for name, dir in pairs(to_rm) do
152 call_proc("rm", {"-r", "-f", dir}, packdir, function(ok) 152 if name ~= "paq-nvim" then
153 last_ops[name] = "remove" 153 vim.fn.delete(dir,"rf")
154 report("remove", ok and "ok" or "err", name, c) 154 end
155 end)
156 end 155 end
157end 156end
158 157
159
160local function list() 158local function list()
161 local installed = vim.tbl_filter(function(name) return packages[name].exists end, vim.tbl_keys(packages)) 159 local installed = vim.tbl_filter(function(name) return packages[name].exists end, vim.tbl_keys(packages))
162 local removed = vim.tbl_filter(function(name) return last_ops[name] == "remove" end, vim.tbl_keys(last_ops)) 160 local removed = vim.tbl_filter(function(name) return last_ops[name] == "remove" end, vim.tbl_keys(last_ops))