From d2317d22e831cbadf792749d20dc2133354d71cb Mon Sep 17 00:00:00 2001 From: Soispha Peetz Date: Wed, 25 Nov 2026 18:36:49 +0100 Subject: pkgs/rollup: Don't check drop-ins if the file already exists in the target There is no reason to explicitly allow it, if it already exists (I think.) --- pkgs/by-name/ro/rollup/src/main.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'pkgs/by-name/ro') diff --git a/pkgs/by-name/ro/rollup/src/main.rs b/pkgs/by-name/ro/rollup/src/main.rs index 3b542f6c..3fd3840b 100644 --- a/pkgs/by-name/ro/rollup/src/main.rs +++ b/pkgs/by-name/ro/rollup/src/main.rs @@ -300,9 +300,7 @@ fn apply_patches( } FileDiff::Remove { path, .. } => { if applies_to.join(path).try_exists()? { - if drop_in_applies(&config.drop_ins, owner, &root, path)? { - final_diffs.push(file_diff.to_owned()); - } + final_diffs.push(file_diff.to_owned()); } else { drop_msg!( "Dropping remove of `{}`, as the file does not exist in the rollup target.", @@ -319,8 +317,7 @@ fn apply_patches( from.display(), to.display() ) - } - if drop_in_applies(&config.drop_ins, owner, &root, to)? { + } else { final_diffs.push(file_diff.to_owned()); } } else { @@ -333,9 +330,7 @@ fn apply_patches( } FileDiff::Change { path, .. } => { if applies_to.join(path).try_exists()? { - if drop_in_applies(&config.drop_ins, owner, &root, path)? { - final_diffs.push(file_diff.to_owned()); - } + final_diffs.push(file_diff.to_owned()); } else { drop_msg!( "Dropping change to `{}`, as the file does not exist in the rollup target.", -- cgit v1.3.1