mirror of
https://github.com/kepler155c/opus
synced 2024-12-28 01:20:27 +00:00
experimental packages fix https://github.com/kepler155c/opus/issues/35
This commit is contained in:
parent
4d02f75a19
commit
2d942ef001
@ -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
|
||||
|
@ -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$')
|
||||
|
Loading…
Reference in New Issue
Block a user