kepler155c@gmail.com 2 years ago
parent 4d02f75a19
commit 2d942ef001
  1. 1
      sys/apps/package.lua
  2. 4
      sys/init/5.unpackage.lua

@ -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…
Cancel
Save