1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-19 09:47:39 +00:00

package manager

This commit is contained in:
kepler155c@gmail.com
2019-01-09 06:59:19 -05:00
parent 4387264960
commit 4977ea94d7
4 changed files with 59 additions and 40 deletions

View File

@@ -33,6 +33,17 @@ function Packages:isInstalled(package)
return self:installed()[package]
end
function Packages:downloadList()
local packages = {
[ 'develop-1.8' ] = 'https://pastebin.com/raw/WhEiNGZE',
[ 'master-1.8' ] = 'https://pastebin.com/raw/pexZpAxt',
}
if packages[_G.OPUS_BRANCH] then
Util.download(packages[_G.OPUS_BRANCH], 'usr/config/packages')
end
end
function Packages:getManifest(package)
local fname = 'packages/' .. package .. '/.package'
if fs.exists(fname) then