1
0
mirror of https://github.com/kepler155c/opus synced 2024-12-28 01:20:27 +00:00
This commit is contained in:
kepler155c@gmail.com 2020-06-06 11:00:07 -06:00
parent 4d02f75a19
commit 2d942ef001
2 changed files with 5 additions and 0 deletions

View File

@ -165,6 +165,7 @@ if action == 'uninstall' then
local packageDir = fs.combine('packages', name)
fs.delete(packageDir)
fs.delete(packageDir .. '.tar.lzw')
print('removed: ' .. packageDir)
return
end

View File

@ -4,6 +4,10 @@ local Util = require('opus.util')
local fs = _G.fs
if not fs.exists('packages') or not fs.isDir('packages') then
return
end
for _, name in pairs(fs.list('packages')) do
local fullName = fs.combine('packages', name)
local packageName = name:match('(.+)%.tar%.lzw$')