diff -Nru golang-github-valyala-fasttemplate-1.2.1+ds1/debian/changelog golang-github-valyala-fasttemplate-1.2.2+ds1/debian/changelog --- golang-github-valyala-fasttemplate-1.2.1+ds1/debian/changelog 2021-12-03 16:27:23.000000000 +0000 +++ golang-github-valyala-fasttemplate-1.2.2+ds1/debian/changelog 2022-11-04 17:48:17.000000000 +0000 @@ -1,3 +1,12 @@ +golang-github-valyala-fasttemplate (1.2.2+ds1-1) unstable; urgency=medium + + * Team upload. + * New upstream version 1.2.2. + * Fix typo in Files-Excluded field name. + * Switch to Standards-Version 4.6.1 (no changes needed). + + -- Guillem Jover Fri, 04 Nov 2022 18:48:17 +0100 + golang-github-valyala-fasttemplate (1.2.1+ds1-1) unstable; urgency=medium * Team upload. diff -Nru golang-github-valyala-fasttemplate-1.2.1+ds1/debian/control golang-github-valyala-fasttemplate-1.2.2+ds1/debian/control --- golang-github-valyala-fasttemplate-1.2.1+ds1/debian/control 2021-12-03 16:27:02.000000000 +0000 +++ golang-github-valyala-fasttemplate-1.2.2+ds1/debian/control 2022-11-04 17:47:50.000000000 +0000 @@ -11,7 +11,7 @@ dh-sequence-golang, golang-any, golang-github-valyala-bytebufferpool-dev, -Standards-Version: 4.6.0 +Standards-Version: 4.6.1 Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-valyala-fasttemplate Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-valyala-fasttemplate.git Homepage: https://github.com/valyala/fasttemplate diff -Nru golang-github-valyala-fasttemplate-1.2.1+ds1/debian/copyright golang-github-valyala-fasttemplate-1.2.2+ds1/debian/copyright --- golang-github-valyala-fasttemplate-1.2.1+ds1/debian/copyright 2021-12-03 16:27:02.000000000 +0000 +++ golang-github-valyala-fasttemplate-1.2.2+ds1/debian/copyright 2022-11-04 17:45:25.000000000 +0000 @@ -1,7 +1,7 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: https://github.com/valyala/fasttemplate Upstream-Name: fasttemplate -Files-Exclude: +Files-Excluded: vendor Files: diff -Nru golang-github-valyala-fasttemplate-1.2.1+ds1/template.go golang-github-valyala-fasttemplate-1.2.2+ds1/template.go --- golang-github-valyala-fasttemplate-1.2.1+ds1/template.go 2021-12-03 16:26:22.000000000 +0000 +++ golang-github-valyala-fasttemplate-1.2.2+ds1/template.go 2022-10-18 07:24:49.000000000 +0000 @@ -112,8 +112,7 @@ // but when f returns an error, ExecuteFuncStringWithErr won't panic like ExecuteFuncString // it just returns an empty string and the error f returned func ExecuteFuncStringWithErr(template, startTag, endTag string, f TagFunc) (string, error) { - tagsCount := bytes.Count(unsafeString2Bytes(template), unsafeString2Bytes(startTag)) - if tagsCount == 0 { + if n := bytes.Index(unsafeString2Bytes(template), unsafeString2Bytes(startTag)); n < 0 { return template, nil }