Sort packages when generating Packages index file. #172

This commit is contained in:
Andrey Smirnov
2015-01-19 21:39:02 +03:00
parent 836abdc81e
commit 0665f2231a
+3 -1
View File
@@ -523,7 +523,9 @@ func (p *PublishedRepo) Publish(packagePool aptly.PackagePool, publishedStorageP
progress.InitBar(int64(list.Len()), false)
}
err = list.ForEach(func(pkg *Package) error {
list.PrepareIndex()
err = list.ForEachIndexed(func(pkg *Package) error {
if progress != nil {
progress.AddBar(1)
}