From d21815945527a0948fd21d7b911d62b78ecc0784 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Wed, 4 Jun 2014 17:06:34 +0400 Subject: [PATCH] Multiple connections for published repo. #36 --- cmd/graph.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/graph.go b/cmd/graph.go index 0ef90e64..28bbc969 100644 --- a/cmd/graph.go +++ b/cmd/graph.go @@ -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