diff options
| author | Jeff Carr <[email protected]> | 2025-10-14 09:42:51 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-14 10:49:00 -0500 |
| commit | cd9cca720e44c9f3b690b6441d3e0b01b9963d59 (patch) | |
| tree | 0977439467f27107af5dcb89db23a47266342b9d /doNewest.go | |
| parent | aa08cfcbe50a94898728ee53a685abfbd223a7e4 (diff) | |
more housecleaning
Diffstat (limited to 'doNewest.go')
| -rw-r--r-- | doNewest.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doNewest.go b/doNewest.go index 1670f0a..1016c21 100644 --- a/doNewest.go +++ b/doNewest.go @@ -4,6 +4,7 @@ import ( "time" "go.wit.com/lib/cobol" + "go.wit.com/lib/config" "go.wit.com/lib/protobuf/zoopb" "go.wit.com/log" ) @@ -18,7 +19,7 @@ func doGetNewest(arch string) *zoopb.Packages { found := newest.FindByPackage(p.Package) if found == nil { // package is new - if argv.Verbose { + if config.Verbose() { log.Printf("%-20.20s %-20.20s %-80.80s\n", "new package", p.Package, p.Filename) } newest.Clone(p) @@ -28,11 +29,11 @@ func doGetNewest(arch string) *zoopb.Packages { newtime := found.Ctime.AsTime() durs := cobol.Since(p.Ctime) + " vs found " + cobol.Since(found.Ctime) if time.Since(curtime) > time.Since(newtime) { - if argv.Verbose { + if config.Verbose() { log.Printf("%-20.20s %-20.20s %-80.80s %s\n", "found is newer", p.Package, p.Filename, durs) } } else { - if argv.Verbose { + if config.Verbose() { log.Printf("%-20.20s %-20.20s %-80.80s %s\n", "found is older", p.Package, p.Filename, durs) } newest.Delete(found) |
