Move graph into deb/ package, passing collection factory. #169

This commit is contained in:
Andrey Smirnov
2015-01-13 19:10:39 +03:00
parent b50cb70a0e
commit 427c42f4b8
3 changed files with 17 additions and 19 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ package cmd
import (
"bytes"
"fmt"
"github.com/smira/aptly/deb"
"github.com/smira/commander"
"github.com/smira/aptly/graph"
"io"
"io/ioutil"
"os"
@@ -20,7 +20,7 @@ func aptlyGraph(cmd *commander.Command, args []string) error {
}
fmt.Printf("Generating graph...\n")
graph, err := graph.BuildGraph(context)
graph, err := deb.BuildGraph(context.CollectionFactory())
if err != nil {
return err
}