summaryrefslogtreecommitdiff
path: root/doNewest.go
diff options
context:
space:
mode:
Diffstat (limited to 'doNewest.go')
-rw-r--r--doNewest.go8
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)