mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Sort components when doing string representation. #36
This commit is contained in:
+2
-1
@@ -233,9 +233,10 @@ func NewPublishedRepo(prefix string, distribution string, architectures []string
|
|||||||
func (p *PublishedRepo) String() string {
|
func (p *PublishedRepo) String() string {
|
||||||
var sources = []string{}
|
var sources = []string{}
|
||||||
|
|
||||||
for component, item := range p.sourceItems {
|
for _, component := range p.Components() {
|
||||||
var source string
|
var source string
|
||||||
|
|
||||||
|
item := p.sourceItems[component]
|
||||||
if item.snapshot != nil {
|
if item.snapshot != nil {
|
||||||
source = item.snapshot.String()
|
source = item.snapshot.String()
|
||||||
} else if item.localRepo != nil {
|
} else if item.localRepo != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user