Skip startup cleanup for extract errors

This commit is contained in:
Sucukdeluxe
2026-03-09 01:43:43 +01:00
parent 58e2612306
commit 47742ad7a4
2 changed files with 100 additions and 0 deletions
+6
View File
@@ -2390,6 +2390,12 @@ export class DownloadManager extends EventEmitter {
continue;
}
const hasExtractErrors = items.some((item) => isExtractErrorLabel(item.fullStatus || ""));
if (hasExtractErrors) {
logger.info(`Nachträgliches Cleanup übersprungen: pkg=${pkg.name}, reason=extract_error_present`);
continue;
}
const hasExtractMarker = items.some((item) => isExtractedLabel(item.fullStatus));
const extractDirIsUnique = (extractDirUsage.get(pathKey(pkg.extractDir)) || 0) === 1;
const hasExtractedOutput = extractDirIsUnique && await this.directoryHasAnyFiles(pkg.extractDir);