mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
d-i requires the Suite field in order to validate a mirror.
Debian's installer validates a mirror by downloading a Release, and then cross-checking it based on its Codename and Suite. Without a Suite field, the installer becomes unhappy (e.g. segfaults) and won't continue the install. Making the Codename and Suite the same validates with no problem.
This commit is contained in:
@@ -624,6 +624,7 @@ func (p *PublishedRepo) Publish(packagePool aptly.PackagePool, publishedStorageP
|
||||
release := make(Stanza)
|
||||
release["Origin"] = p.GetOrigin()
|
||||
release["Label"] = p.GetLabel()
|
||||
release["Suite"] = p.Distribution
|
||||
release["Codename"] = p.Distribution
|
||||
release["Date"] = time.Now().UTC().Format("Mon, 2 Jan 2006 15:04:05 MST")
|
||||
release["Architectures"] = strings.Join(utils.StrSlicesSubstract(p.Architectures, []string{"source"}), " ")
|
||||
|
||||
Reference in New Issue
Block a user