Ignore pkgrel in kernel rebuild check
A stock kernel packaging-only bump doesn't require rebuilding the custom kernel.
This commit is contained in:
+3
-2
@@ -104,8 +104,9 @@ for stock_pkg in "${!KERNELS[@]}"; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Flag the kernel while the stock one is newer than the newest custom build
|
# 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)
|
# (installed, or already built into your repo but not yet installed).
|
||||||
if (( $(vercmp "$stock_ver" "$custom_ver") > 0 )); then
|
# 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)")
|
kernel_lines+=("Rebuild $custom_pkg ($stock_pkg $stock_ver)")
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user