1
0
mirror of https://github.com/lxc/distrobuilder.git synced 2026-02-05 06:45:19 +01:00

Update OpenWRT config to build also release candidates

Signed-off-by: Thomas Winkler <tewinkler86@gmail.com>
This commit is contained in:
Thomas Winkler
2025-12-22 14:47:39 +01:00
committed by GitHub
parent 7007618cdc
commit 194b0f40af

View File

@@ -172,7 +172,7 @@ func (s *openwrt) getLatestServiceRelease(baseURL, release string) (string, erro
return "", fmt.Errorf("Failed to ready body: %w", err)
}
regex := regexp.MustCompile(fmt.Sprintf(">(%s\\.\\d+)<", release))
regex := regexp.MustCompile(fmt.Sprintf(">(%s\\.\\d+(?:-rc\\d+)?)<", release))
releases := regex.FindAllStringSubmatch(string(body), -1)
if len(releases) > 0 {