fix(content): only clean up library dependencies

This commit is contained in:
objz committed 2026-07-28 20:37:10 +02:00
1 parent 8f920080d1
commit aefc4535e1
14 files changed
+209 -14

No files matched your search

+6 -1
View File
@@ -91,6 +91,8 @@ pub struct ContentFileRecord {
pub required_dependencies: Vec<ProviderProject>,
#[serde(default)]
pub automatic_dependency: bool,
#[serde(default)]
pub cleanup_eligible: bool,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -250,7 +252,10 @@ impl ContentManifest {
loop {
let mut found = false;
for candidate in &self.files {
if !candidate.automatic_dependency || removed.contains(&candidate.relative_path) {
if !candidate.automatic_dependency
|| !candidate.cleanup_eligible
|| removed.contains(&candidate.relative_path)
{
continue;
}
let still_required = self