Multiple connections for published repo. #36

This commit is contained in:
Andrey Smirnov
2014-06-04 17:06:34 +04:00
parent 8be6911238
commit d218159455
+5 -3
View File
@@ -125,9 +125,11 @@ func aptlyGraph(cmd *commander.Command, args []string) error {
strings.Join(repo.Components(), " "), strings.Join(repo.Architectures, ", ")),
})
_, exists := existingNodes[repo.SourceUUID]
if exists {
graph.AddEdge(repo.SourceUUID, repo.UUID, true, nil)
for _, uuid := range repo.Sources {
_, exists := existingNodes[uuid]
if exists {
graph.AddEdge(uuid, repo.UUID, true, nil)
}
}
return nil