linux-hardened: fix update script
We now have releases called `v5.19.x-hardened2` so make sure that the update script doesn't stumble upon this.
This commit is contained in:
parent
c2d301f7af
commit
80228b73e9
|
@ -138,7 +138,7 @@ def fetch_patch(*, name: str, release_info: ReleaseInfo) -> Optional[Patch]:
|
|||
if not sig_ok:
|
||||
return None
|
||||
|
||||
kernel_ver = release_info.release.tag_name.replace("-hardened1", "")
|
||||
kernel_ver = re.sub(r"(.*)(-hardened[\d]+)$", r'\1', release_info.release.tag_name)
|
||||
major = kernel_ver.split('.')[0]
|
||||
sha256_kernel, _ = nix_prefetch_url(f"mirror://kernel/linux/kernel/v{major}.x/linux-{kernel_ver}.tar.xz")
|
||||
|
||||
|
|
Loading…
Reference in a new issue