1
0
mirror of https://github.com/kepler155c/opus synced 2024-12-26 00:20:26 +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')
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
local dbs = fs.list(path)
for _, db in pairs(dbs) do
local apps = Util.readTable(fs.combine(path, db)) or { }
Util.merge(applications, apps)
end
local apps = Util.readTable(path) or { }
Util.merge(applications, apps)
end
end