From 9720b4d2a1bb2e4e91d1eb9e65665157c0dcc052 Mon Sep 17 00:00:00 2001 From: Daniele Fucini Date: Wed, 7 Oct 2026 19:45:47 +0200 Subject: [PATCH] Ignore pkgrel in kernel rebuild check A stock kernel packaging-only bump doesn't require rebuilding the custom kernel. --- update-notify | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/update-notify b/update-notify index 842d93e..851e62b 100755 --- a/update-notify +++ b/update-notify @@ -104,8 +104,9 @@ for stock_pkg in "${!KERNELS[@]}"; do fi # Flag the kernel while the stock one is newer than the newest custom build - # (installed, or already built into your repo but not yet installed) - if (( $(vercmp "$stock_ver" "$custom_ver") > 0 )); then + # (installed, or already built into your repo but not yet installed). + # pkgrel is ignored: a stock packaging-only bump doesn't need a rebuild. + if (( $(vercmp "${stock_ver%-*}" "${custom_ver%-*}") > 0 )); then kernel_lines+=("Rebuild $custom_pkg ($stock_pkg $stock_ver)") fi done