]> git.ipfire.org Git - thirdparty/openwrt.git/commit
scripts/patch-kernel.sh: do not try to check files after patch 20742/head
authorGeorge Tsiamasiotis <george@tsiamasiotis.gr>
Tue, 23 Sep 2025 20:11:19 +0000 (23:11 +0300)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 12 Nov 2025 11:09:43 +0000 (12:09 +0100)
commit58cde9ec226918812473c77e562b059316b5989a
treeb646762f782c5bb9563747f7338b3a3e2229521d
parentdddeea5e7ff5db16cf3dc513f8d5c8ca27c65fa6
scripts/patch-kernel.sh: do not try to check files after patch

Since we are not using patch -b, *.orig files are only created when
there are conflicts, or never according to posix patch.

As such, it doesn't really make sense to always delete *.orig files
presuming they are patch backups, even if they are patch backups.
Doing so is both deleting potentially useful information for failed
patch applications and creating hard to diagnose bugs [1].

In a similar vein, checking for *.rej files does not add any value
since we're already checking the patch command's return code.

[1]: https://github.com/openwrt/packages/issues/27485

Signed-off-by: George Tsiamasiotis <george@tsiamasiotis.gr>
Link: https://github.com/openwrt/openwrt/pull/20141
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 75ca6bafd614efd1427a979d28d551af775b8e5d)
Link: https://github.com/openwrt/openwrt/pull/20742
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
scripts/patch-kernel.sh