Merge branch 'sbadia-swift'

Conflicts:
	AUTHORS
This commit is contained in:
Andrey Smirnov
2015-02-21 01:08:48 +03:00
36 changed files with 1088 additions and 24 deletions

View File

@@ -6,6 +6,7 @@ import (
"strings"
)
// BuildGraph generates graph contents from aptly object database
func BuildGraph(collectionFactory *CollectionFactory) (gographviz.Interface, error) {
var err error

View File

@@ -297,6 +297,7 @@ func (collection *SnapshotCollection) ForEach(handler func(*Snapshot) error) err
return err
}
// ForEachSorted runs method for each snapshot following some sort order
func (collection *SnapshotCollection) ForEachSorted(sortMethod string, handler func(*Snapshot) error) error {
sorter, err := newSnapshotSorter(sortMethod, collection)
if err != nil {