diff -Nru golang-github-xeipuuv-gojsonschema-1.2.0/debian/changelog golang-github-xeipuuv-gojsonschema-1.2.0/debian/changelog --- golang-github-xeipuuv-gojsonschema-1.2.0/debian/changelog 2020-03-22 15:02:33.000000000 +0000 +++ golang-github-xeipuuv-gojsonschema-1.2.0/debian/changelog 2021-11-10 17:20:14.000000000 +0000 @@ -1,3 +1,21 @@ +golang-github-xeipuuv-gojsonschema (1.2.0-2) unstable; urgency=medium + + * Team upload. + + [ Debian Janitor ] + * Wrap long lines in changelog entries: 0.0~git20170210.0.6b67b3f-2. + * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository, + Repository-Browse. + + [ Shengjing Zhu ] + * Update Section to golang + * Update Standards-Version to 4.6.0 (no changes) + * Bump debhelper-compat to 13 + * Add Multi-Arch hint + * Add patch to fix test with Go1.17 (Closes: #997565) + + -- Shengjing Zhu Thu, 11 Nov 2021 01:20:14 +0800 + golang-github-xeipuuv-gojsonschema (1.2.0-1) unstable; urgency=medium * Team upload. @@ -19,7 +37,8 @@ golang-github-xeipuuv-gojsonschema (0.0~git20170210.0.6b67b3f-2) unstable; urgency=medium - * Replace golang-go with golang-any in Build-Depends, remove golang-go from Depends + * Replace golang-go with golang-any in Build-Depends, remove golang-go from + Depends -- Konstantinos Margaritis Wed, 09 Aug 2017 12:30:43 +0300 diff -Nru golang-github-xeipuuv-gojsonschema-1.2.0/debian/control golang-github-xeipuuv-gojsonschema-1.2.0/debian/control --- golang-github-xeipuuv-gojsonschema-1.2.0/debian/control 2020-03-22 15:02:33.000000000 +0000 +++ golang-github-xeipuuv-gojsonschema-1.2.0/debian/control 2021-11-10 17:20:14.000000000 +0000 @@ -1,16 +1,16 @@ Source: golang-github-xeipuuv-gojsonschema -Section: devel +Section: golang Priority: optional Maintainer: Debian Go Packaging Team Uploaders: Dmitry Smirnov , Tim Potter , Stephen Gelman , -Build-Depends: debhelper-compat (= 12), +Build-Depends: debhelper-compat (= 13), dh-golang, golang-any, golang-github-stretchr-testify-dev, golang-github-xeipuuv-gojsonreference-dev, -Standards-Version: 4.5.0 +Standards-Version: 4.6.0 Homepage: https://github.com/xeipuuv/gojsonschema Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-xeipuuv-gojsonschema Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-xeipuuv-gojsonschema.git @@ -20,6 +20,7 @@ Package: golang-github-xeipuuv-gojsonschema-dev Architecture: all +Multi-Arch: foreign Depends: golang-github-xeipuuv-gojsonreference-dev, ${misc:Depends}, ${shlibs:Depends}, diff -Nru golang-github-xeipuuv-gojsonschema-1.2.0/debian/patches/0001-Reject-comma-in-time-format.patch golang-github-xeipuuv-gojsonschema-1.2.0/debian/patches/0001-Reject-comma-in-time-format.patch --- golang-github-xeipuuv-gojsonschema-1.2.0/debian/patches/0001-Reject-comma-in-time-format.patch 1970-01-01 00:00:00.000000000 +0000 +++ golang-github-xeipuuv-gojsonschema-1.2.0/debian/patches/0001-Reject-comma-in-time-format.patch 2021-11-10 17:20:14.000000000 +0000 @@ -0,0 +1,33 @@ +From: Shengjing Zhu +Date: Thu, 11 Nov 2021 01:10:56 +0800 +Subject: Reject comma in time format + +Retain behavior with Go1.16 + +Forwarded: https://github.com/xeipuuv/gojsonschema/pull/339 +--- + format_checkers.go | 11 +++++++++-- + 1 file changed, 9 insertions(+), 2 deletions(-) + +diff --git a/format_checkers.go b/format_checkers.go +index 873ffc7..7c9252c 100644 +--- a/format_checkers.go ++++ b/format_checkers.go +@@ -267,8 +267,15 @@ func (f TimeFormatChecker) IsFormat(input interface{}) bool { + return true + } + +- _, err := time.Parse("15:04:05", asString) +- return err == nil ++ parsed, err := time.Parse("15:04:05", asString) ++ if err != nil { ++ return false ++ } ++ ++ // Go1.17 accepts comma "," as a separator for fractional seconds, ++ // But RFC3339 doesn't. ++ ++ return parsed.Format("15:04:05") == asString + } + + // IsFormat checks if input is correctly formatted URI with a valid Scheme per RFC3986 diff -Nru golang-github-xeipuuv-gojsonschema-1.2.0/debian/patches/series golang-github-xeipuuv-gojsonschema-1.2.0/debian/patches/series --- golang-github-xeipuuv-gojsonschema-1.2.0/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ golang-github-xeipuuv-gojsonschema-1.2.0/debian/patches/series 2021-11-10 17:20:14.000000000 +0000 @@ -0,0 +1 @@ +0001-Reject-comma-in-time-format.patch diff -Nru golang-github-xeipuuv-gojsonschema-1.2.0/debian/upstream/metadata golang-github-xeipuuv-gojsonschema-1.2.0/debian/upstream/metadata --- golang-github-xeipuuv-gojsonschema-1.2.0/debian/upstream/metadata 1970-01-01 00:00:00.000000000 +0000 +++ golang-github-xeipuuv-gojsonschema-1.2.0/debian/upstream/metadata 2021-11-10 17:20:14.000000000 +0000 @@ -0,0 +1,4 @@ +Bug-Database: https://github.com/xeipuuv/gojsonschema/issues +Bug-Submit: https://github.com/xeipuuv/gojsonschema/issues/new +Repository: https://github.com/xeipuuv/gojsonschema.git +Repository-Browse: https://github.com/xeipuuv/gojsonschema