mirror of
https://github.com/kepler155c/opus
synced 2025-02-06 04:00:03 +00:00
new release prep
This commit is contained in:
parent
3b0ac4e338
commit
99687c3d28
@ -24,7 +24,7 @@ function Packages:list()
|
|||||||
if self.packageList then
|
if self.packageList then
|
||||||
return self.packageList
|
return self.packageList
|
||||||
end
|
end
|
||||||
self.packageList = Util.readTable('sys/packageList.lua') or { }
|
self.packageList = Util.readTable('usr/config/packages') or { }
|
||||||
|
|
||||||
return self.packageList
|
return self.packageList
|
||||||
end
|
end
|
||||||
@ -42,9 +42,13 @@ function Packages:getManifest(package)
|
|||||||
local url = list and list[package]
|
local url = list and list[package]
|
||||||
|
|
||||||
if url then
|
if url then
|
||||||
local c = Util.httpGet(url) -- will need to call load
|
local c = Util.httpGet(url)
|
||||||
if c then
|
if c then
|
||||||
return textutils.unserialize(c)
|
c = textutils.unserialize(c)
|
||||||
|
if c then
|
||||||
|
c.repository = c.repository:gsub('{{OPUS_BRANCH}}', _G.OPUS_BRANCH)
|
||||||
|
return c
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -24,6 +24,17 @@ if not fs.exists('usr/config/shell') then
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not fs.exists('usr/config/packages') then
|
||||||
|
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
|
||||||
|
|
||||||
local config = Util.readTable('usr/config/shell')
|
local config = Util.readTable('usr/config/shell')
|
||||||
if config.aliases then
|
if config.aliases then
|
||||||
for k in pairs(shell.aliases()) do
|
for k in pairs(shell.aliases()) do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user