diff options
Diffstat (limited to 'wit.go')
| -rw-r--r-- | wit.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -21,7 +21,7 @@ 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.FindByName(p.Name) + check := all.FindByPackage(p.Package) if check == nil { all.Append(p) return @@ -62,7 +62,7 @@ func fillPB(p *zoopb.Package, namemap map[string]string) error { if varname == "Git-Tag-Date" { varname = "GitTagDate" } - if ok, err := setString(p, varname, s); ok { + if ok, err := SetString(p, varname, s); ok { continue } else { log.Printf("%s: var=%s val=%s err=%v\n", p.Package, varname, s, err) @@ -167,9 +167,9 @@ func parsePackageInfo(lines string) (*zoopb.Package, map[string]string) { } p := zoopb.Package{ - Name: name, + Package: name, Version: version, - PkgName: filename, + Filename: filename, Namespace: gopath, } |
