mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 02:24:18 +00:00
override pkg
after applying
This commit is contained in:
parent
98d4676d8e
commit
26753e6471
@ -59,6 +59,8 @@ export default async function apply(pkg_id, changes = {}) {
|
||||
|
||||
await patches.remove(findPatch(manifest.patches, pkg.applied_patches, changes, false))
|
||||
await patches.patch(findPatch(manifest.patches, pkg.applied_patches, changes, true))
|
||||
|
||||
pkg = await DB.getPackages(pkg_id)
|
||||
}
|
||||
|
||||
if (changes.config) {
|
||||
|
@ -42,7 +42,7 @@ export default async function install(manifest) {
|
||||
|
||||
Log.info(`Appending to db...`)
|
||||
|
||||
const pkg = DB.defaultPackageState({
|
||||
let pkg = DB.defaultPackageState({
|
||||
...manifest.constructor,
|
||||
id: id,
|
||||
name: manifest.constructor.pkg_name,
|
||||
@ -140,7 +140,7 @@ export default async function install(manifest) {
|
||||
status_text: `Applying default patches...`,
|
||||
})
|
||||
|
||||
await Apply(id, {
|
||||
pkg = await Apply(id, {
|
||||
patches: Object.fromEntries(defaultPatches.map((patch) => [patch.id, true])),
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user