mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-14 09:57:16 +00:00
Sort components when doing string representation. #36
This commit is contained in:
1 parent
e3a71c81e1
commit
17b320eac4
1 file changed
+2
-1
+2
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user