Fix nasty bug in output of "bashbrew children --uniq"
This was showing the repository of the repo-under-test with the tag of the child ("alpine:1.6.15-alpine" instead of "haproxy:1.6.15-alpine")
This commit is contained in:
parent
013567335e
commit
818df5f5b0
|
|
@ -3,6 +3,7 @@ package main
|
|||
import (
|
||||
"fmt"
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
"github.com/codegangsta/cli"
|
||||
"pault.ag/go/topsort"
|
||||
|
|
@ -128,7 +129,7 @@ func cmdFamily(parents bool, c *cli.Context) error {
|
|||
for _, node := range depthNodes.nodes {
|
||||
seenKey := node.Name
|
||||
if uniq {
|
||||
seenKey = tagRepo + ":" + node.Value.(*manifest.Manifest2822Entry).Tags[0]
|
||||
seenKey = seenKey[:strings.Index(seenKey, ":")+1] + node.Value.(*manifest.Manifest2822Entry).Tags[0]
|
||||
}
|
||||
if seen[seenKey] {
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in New Issue