1
0
mirror of https://github.com/kepler155c/opus synced 2024-12-27 09:00:41 +00:00

reorg app db

This commit is contained in:
kepler155c@gmail.com 2018-12-26 04:01:40 -05:00
parent 6343589183
commit 0b326589c2
3 changed files with 3 additions and 6 deletions

View File

@ -128,13 +128,10 @@ local function loadApplications()
applications = Util.readTable('sys/etc/app.db') applications = Util.readTable('sys/etc/app.db')
for dir in pairs(Packages:installed()) do for dir in pairs(Packages:installed()) do
local path = fs.combine('packages/' .. dir, 'etc/apps') local path = fs.combine('packages/' .. dir, 'etc/apps.db')
if fs.exists(path) then if fs.exists(path) then
local dbs = fs.list(path) local apps = Util.readTable(path) or { }
for _, db in pairs(dbs) do Util.merge(applications, apps)
local apps = Util.readTable(fs.combine(path, db)) or { }
Util.merge(applications, apps)
end
end end
end end