diff options
Diffstat (limited to 'wit.go')
| -rw-r--r-- | wit.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -21,7 +21,10 @@ func InitWitMirrors(m *zoopb.Machine) error { // adds the package if the name isn't there // if it's newer, remove the old package and use the new one func AddIfNewer(all *zoopb.Packages, p *zoopb.Package) { - check := all.FindByPackage(p.Package) + check, err := all.FindByPackageName(p.Package) + if err != nil { + panic("dup package names") + } if check == nil { all.Append(p) return |
