mirror of
https://github.com/kepler155c/opus
synced 2024-12-27 09:00:41 +00:00
reorg app db
This commit is contained in:
parent
6343589183
commit
0b326589c2
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user