1
0
mirror of https://github.com/kepler155c/opus synced 2024-12-25 16:10:26 +00:00

package management

This commit is contained in:
kepler155c@gmail.com 2018-11-03 18:25:49 -04:00
parent c478781cba
commit 67be1e0f2f

View File

@ -27,11 +27,9 @@ end
for name, package in pairs(Packages:installed()) do for name, package in pairs(Packages:installed()) do
local packageDir = fs.combine('packages', name) local packageDir = fs.combine('packages', name)
debug(fs.combine(packageDir, '.install'))
if fs.exists(fs.combine(packageDir, '.install')) then if fs.exists(fs.combine(packageDir, '.install')) then
local install = Util.readTable(fs.combine(packageDir, '.install')) local install = Util.readTable(fs.combine(packageDir, '.install'))
if install and install.mount then if install and install.mount then
debug('mounting: ' .. install.mount)
fs.mount(table.unpack(Util.matches(install.mount))) fs.mount(table.unpack(Util.matches(install.mount)))
end end
end end