mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-08 22:30:41 +00:00
Sort packages when generating Packages index file. #172
This commit is contained in:
+3
-1
@@ -523,7 +523,9 @@ func (p *PublishedRepo) Publish(packagePool aptly.PackagePool, publishedStorageP
|
|||||||
progress.InitBar(int64(list.Len()), false)
|
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 {
|
if progress != nil {
|
||||||
progress.AddBar(1)
|
progress.AddBar(1)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user