Fix debian InRelease Acquire-By-Hash newline (#29204) (#29299)

Backport #29204

Co-authored-by: Robin Schoonover <robin@cornhooves.org>
pull/29300/head^2
wxiaoguang 9 months ago committed by GitHub
parent 9379352db6
commit f634982d23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      services/packages/debian/repository.go

@ -341,7 +341,7 @@ func buildReleaseFiles(ctx context.Context, ownerID int64, repoVersion *packages
fmt.Fprintf(w, "Components: %s\n", strings.Join(components, " "))
fmt.Fprintf(w, "Architectures: %s\n", strings.Join(architectures, " "))
fmt.Fprintf(w, "Date: %s\n", time.Now().UTC().Format(time.RFC1123))
fmt.Fprint(w, "Acquire-By-Hash: yes")
fmt.Fprint(w, "Acquire-By-Hash: yes\n")
pfds, err := packages_model.GetPackageFileDescriptors(ctx, pfs)
if err != nil {

Loading…
Cancel
Save