mirror of
https://github.com/kepler155c/opus
synced 2025-01-14 17:35:42 +00:00
package manager fix
This commit is contained in:
parent
9c43a261a8
commit
95178b0452
@ -13,7 +13,11 @@ function Packages:installed()
|
|||||||
if fs.exists(PACKAGE_DIR) then
|
if fs.exists(PACKAGE_DIR) then
|
||||||
for _, dir in pairs(fs.list(PACKAGE_DIR)) do
|
for _, dir in pairs(fs.list(PACKAGE_DIR)) do
|
||||||
local path = fs.combine(fs.combine(PACKAGE_DIR, dir), '.package')
|
local path = fs.combine(fs.combine(PACKAGE_DIR, dir), '.package')
|
||||||
self.cache[dir] = Util.readTable(path)
|
local c = Util.readTable(path)
|
||||||
|
if c then
|
||||||
|
c.repository = c.repository:gsub('{{OPUS_BRANCH}}', _G.OPUS_BRANCH)
|
||||||
|
self.cache[dir] = c
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user