mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 07:20:22 +08:00
fix: 发布 1.1.21,修复 #43、#9、#15、#23、#42 报必需补丁失败
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
978538f0ae
commit
4538da436d
7 files changed
+55
-26
No files matched your search
+3
-1
@@ -3827,6 +3827,8 @@ function rollupPatchStatus({ applied, already, missing, notFound, lastError, key
|
||||
if (already > 0 && (notFound === 0 || layoutSoft)) return "already";
|
||||
if (missing === keyCount) return "missing_file";
|
||||
if (lastError) return lastError;
|
||||
// 文件在,但这份原文不在:列表里本来就是跳过,不能再把整次应用判失败。
|
||||
if (notFound === 0) return "skipped";
|
||||
return "pattern_not_found";
|
||||
}
|
||||
|
||||
@@ -3923,7 +3925,7 @@ export async function applyPatches(aiBase, patches = ALL_PATCHES) {
|
||||
}
|
||||
if (filePatchSettled(text, p, fp)) {
|
||||
already += 1;
|
||||
} else {
|
||||
} else if (patchHasRemainingWork(text, p, fp)) {
|
||||
notFound += 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user