diff options
| author | Jeff Carr <[email protected]> | 2025-10-22 09:19:04 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-22 09:19:04 -0500 |
| commit | 570417ac12815116e4cdf90bbb656e01a1321a56 (patch) | |
| tree | df90806fd512b33142d1dc2d112290d7c1d1b2f8 /doNewest.go | |
| parent | b28cd1762a2601b6acb082ac54c62aef166a5758 (diff) | |
step1v0.0.29
Diffstat (limited to 'doNewest.go')
| -rw-r--r-- | doNewest.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doNewest.go b/doNewest.go index 1016c21..2088202 100644 --- a/doNewest.go +++ b/doNewest.go @@ -3,8 +3,8 @@ package main import ( "time" + "go.wit.com/lib/ENV" "go.wit.com/lib/cobol" - "go.wit.com/lib/config" "go.wit.com/lib/protobuf/zoopb" "go.wit.com/log" ) @@ -19,7 +19,7 @@ func doGetNewest(arch string) *zoopb.Packages { found := newest.FindByPackage(p.Package) if found == nil { // package is new - if config.Verbose() { + if ENV.Verbose() { log.Printf("%-20.20s %-20.20s %-80.80s\n", "new package", p.Package, p.Filename) } newest.Clone(p) @@ -29,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 config.Verbose() { + if ENV.Verbose() { log.Printf("%-20.20s %-20.20s %-80.80s %s\n", "found is newer", p.Package, p.Filename, durs) } } else { - if config.Verbose() { + if ENV.Verbose() { log.Printf("%-20.20s %-20.20s %-80.80s %s\n", "found is older", p.Package, p.Filename, durs) } newest.Delete(found) |
