Handle source repos while creating dist release file

This commit is contained in:
Ryan Uber
2014-05-29 22:24:19 -07:00
parent b0f9a4a419
commit 9a4543500c
2 changed files with 25 additions and 11 deletions
+5 -2
View File
@@ -443,8 +443,11 @@ func (p *PublishedRepo) Publish(packagePool aptly.PackagePool, publishedStorage
st["Archive"] = p.Distribution
st["Architecture"] = arch
file, err := publishedStorage.CreateFile(filepath.Join(basePath, p.Component,
fmt.Sprintf("binary-%s", arch), "Release"))
if arch != "source" {
arch = fmt.Sprintf("binary-%s", arch)
}
file, err := publishedStorage.CreateFile(filepath.Join(basePath, p.Component, arch, "Release"))
if err != nil {
return fmt.Errorf("unable to create Release file: %s", err)
}