diff options
| author | Jeff Carr <[email protected]> | 2025-10-24 18:31:21 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-24 18:31:21 -0500 |
| commit | d4ac45d164ab08b212382220e31f12c810e77265 (patch) | |
| tree | 4b00671606313f008025304a1672fa174b84c7fe /doNewest.go | |
| parent | 15c0f73cefffe7b1d2afed3f38406756b9977761 (diff) | |
s/ENV/env/ but ENV really is better herev0.0.31
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 2088202..86dbfb5 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/env" "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 ENV.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 ENV.Verbose() { + if env.Verbose() { log.Printf("%-20.20s %-20.20s %-80.80s %s\n", "found is newer", p.Package, p.Filename, durs) } } else { - if ENV.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) |
