From 17b320eac4e5d392c75b9e993fef07eccb4bd578 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Sat, 7 Jun 2014 15:18:36 +0400 Subject: [PATCH] Sort components when doing string representation. #36 --- deb/publish.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deb/publish.go b/deb/publish.go index 3d63a614..c44571f7 100644 --- a/deb/publish.go +++ b/deb/publish.go @@ -233,9 +233,10 @@ func NewPublishedRepo(prefix string, distribution string, architectures []string func (p *PublishedRepo) String() string { var sources = []string{} - for component, item := range p.sourceItems { + for _, component := range p.Components() { var source string + item := p.sourceItems[component] if item.snapshot != nil { source = item.snapshot.String() } else if item.localRepo != nil {