diff options
| author | Jeff Carr <[email protected]> | 2025-10-09 06:59:47 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-09 13:00:08 -0500 |
| commit | 0f84c35582c4498e00839d782fea704cede98cd7 (patch) | |
| tree | 802ed3bc12c449c3fe440974c0c1b04ac923cbbe /main.go | |
| parent | fcfbcc4961ca92cc668306739933f509dc664f4f (diff) | |
processed all files to a .pb
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -33,11 +33,11 @@ func main() { } os.Chdir("/home/mirrors/wit") - pb := zoopb.NewPackages() - pb.Filename = "/home/mirrors/mirrors.wit.com.pb" - if err := config.Load(pb); err != nil { + me.pb = zoopb.NewPackages() + me.pb.Filename = "/home/mirrors/mirrors.wit.com.pb" + if err := config.Load(me.pb); err != nil { if argv.Force { - config.Save(pb) + config.Save(me.pb) } else { me.sh.BadExit("no config found. use --force to create one", err) } @@ -90,14 +90,14 @@ func main() { // todo: add to protomap } } - pb.AppendByFilename(newdeb) + me.pb.AppendByFilename(newdeb) // arch := deb.ControlData["Architecture"] } - footer := pb.PrintTable() + footer := me.pb.PrintTable() log.Info("found so far:", footer) - config.Save(pb) - log.Info("len", pb.Len()) + config.Save(me.pb) + log.Info("len", me.pb.Len()) me.sh.GoodExit("nothing to do") } |
