Sort components when doing string representation. #36

This commit is contained in:
Andrey Smirnov
2014-06-07 15:18:36 +04:00
parent e3a71c81e1
commit 17b320eac4
+2 -1
View File
@@ -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 {