diff options
| author | Soispha Peetz <soispha@b-peetz.de> | 2026-11-25 18:36:49 +0100 |
|---|---|---|
| committer | Soispha Peetz <soispha@b-peetz.de> | 2026-11-28 23:58:37 +0100 |
| commit | d2317d22e831cbadf792749d20dc2133354d71cb (patch) | |
| tree | d6d66d86db32e69824c77cc6e587ff3c07536f19 /pkgs/by-name/ro | |
| parent | pkgs/rollup: Use `try_exists` instead of `exists` (diff) | |
| download | nixos-config-d2317d22e831cbadf792749d20dc2133354d71cb.zip | |
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.)
Diffstat (limited to 'pkgs/by-name/ro')
| -rw-r--r-- | pkgs/by-name/ro/rollup/src/main.rs | 11 |
1 files changed, 3 insertions, 8 deletions
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.", |
