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