1
0
mirror of https://github.com/kepler155c/opus synced 2024-12-24 15:40: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
local packageDir = fs.combine('packages', name)
debug(fs.combine(packageDir, '.install'))
if fs.exists(fs.combine(packageDir, '.install')) then
local install = Util.readTable(fs.combine(packageDir, '.install'))
if install and install.mount then
debug('mounting: ' .. install.mount)
fs.mount(table.unpack(Util.matches(install.mount)))
end
end