mirror of
https://github.com/kepler155c/opus
synced 2026-11-26 16:07:10 +00:00
experimental packages fix https://github.com/kepler155c/opus/issues/35
This commit is contained in:
1 parent
4d02f75a19
commit
2d942ef001
2 files changed
+5
No files matched your search
@@ -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$')
|
||||
|
||||
Reference in new issue
Block a user