fix lint complaints

This commit is contained in:
André Roth
2024-03-06 08:08:20 +01:00
parent c2ee086487
commit a0af6a25aa
5 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -665,7 +665,7 @@ func (p *PublishedRepo) Publish(packagePool aptly.PackagePool, publishedStorageP
}
relPath = filepath.Join("pool", component, poolDir)
} else {
if p.Distribution == "focal" {
if p.Distribution == aptly.DistributionFocal {
relPath = filepath.Join("dists", p.Distribution, component, fmt.Sprintf("%s-%s", pkg.Name, arch), "current", "legacy-images")
} else {
relPath = filepath.Join("dists", p.Distribution, component, fmt.Sprintf("%s-%s", pkg.Name, arch), "current", "images")