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:
Tianon Gravi 2020-05-29 13:26:25 -07:00
parent 013567335e
commit 818df5f5b0
1 changed files with 2 additions and 1 deletions

View File

@ -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