mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-24 19:23:53 +00:00
fix: allow double digit epoch for Debian packages (#8671)
Debian packages were capped for a single digit epoch, relax that requirement to a double digit epoch. This is allowed by Debian. Resolves forgejo/forgejo#8649 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8671 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: pkpkpkpk <pkpkpkpk@noreply.codeberg.org> Co-committed-by: pkpkpkpk <pkpkpkpk@noreply.codeberg.org>
This commit is contained in:
parent
1761dae2db
commit
98e2a64e2d
2 changed files with 9 additions and 1 deletions
|
@ -46,7 +46,7 @@ var (
|
|||
// https://www.debian.org/doc/debian-policy/ch-controlfields.html#source
|
||||
namePattern = regexp.MustCompile(`\A[a-z0-9][a-z0-9+-.]+\z`)
|
||||
// https://www.debian.org/doc/debian-policy/ch-controlfields.html#version
|
||||
versionPattern = regexp.MustCompile(`\A(?:[0-9]:)?[a-zA-Z0-9.+~]+(?:-[a-zA-Z0-9.+-~]+)?\z`)
|
||||
versionPattern = regexp.MustCompile(`\A(?:[1-9]?[0-9]:)?[a-zA-Z0-9.+~]+(?:-[a-zA-Z0-9.+-~]+)?\z`)
|
||||
)
|
||||
|
||||
type Package struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue