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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user