First round of support for localRepos as source for publishing. Also more intelligent algo to get publishing defaults. #10 #12

This commit is contained in:
Andrey Smirnov
2014-03-19 16:43:42 +04:00
parent c2fc2f9988
commit 32717e92ba
11 changed files with 348 additions and 124 deletions
+2 -2
View File
@@ -132,9 +132,9 @@ func aptlyGraph(cmd *commander.Command, args []string) error {
"label": graphvizEscape(fmt.Sprintf("{Published %s/%s|comp: %s|arch: %s}", repo.Prefix, repo.Distribution, repo.Component, strings.Join(repo.Architectures, ", "))),
})
_, exists := existingNodes[repo.SnapshotUUID]
_, exists := existingNodes[repo.SourceUUID]
if exists {
graph.AddEdge(graphvizEscape(repo.SnapshotUUID), "", graphvizEscape(repo.UUID), "", true, nil)
graph.AddEdge(graphvizEscape(repo.SourceUUID), "", graphvizEscape(repo.UUID), "", true, nil)
}
return nil