sync: re-link a local plugin when it was removed from the profile even if its hash is unchanged
This commit is contained in:
1 parent
08202cad67
commit
5dff41a3d0
2 files changed
+8
-1
No files matched your search
@@ -495,7 +495,7 @@ export function apply(ctx, config = {}) {
|
||||
if (!sync.allowed(b.name, local)) { result.skipped.push(`${b.name} (local deny/allow)`); continue }
|
||||
try {
|
||||
if (b.kind === 'local') {
|
||||
if (prev[b.name]?.hash === b.hash) { next[b.name] = prev[b.name]; continue }
|
||||
if (prev[b.name]?.hash === b.hash && sync.isLinked(b.name, prev[b.name].dir)) { next[b.name] = prev[b.name]; continue }
|
||||
const stream = mux.open('blob', { name: b.name })
|
||||
const buf = await new Promise((resolve, reject) => {
|
||||
const parts = []
|
||||
|
||||
Reference in new issue
Block a user