this code probably isn't needed, but it does work
This commit is contained in:
parent
06ad922780
commit
8e2a557b25
11
main.go
11
main.go
|
@ -113,6 +113,17 @@ func main() {
|
|||
if argv.Show != "" {
|
||||
repo := me.forge.FindByGoPath(argv.Show)
|
||||
me.forge.HumanPrintRepo(repo)
|
||||
// newt := repo.Times.LastUpdate.AsTime()
|
||||
// oldt := repo.Times.MtimeHead.AsTime()
|
||||
if repo.Times.LastUpdate == nil {
|
||||
log.Info("SHOULD RUN Reload() here")
|
||||
repo.Reload()
|
||||
me.forge.HumanPrintRepo(repo)
|
||||
} else {
|
||||
if repo.Times.LastUpdate.Seconds < repo.Times.MtimeHead.Seconds {
|
||||
log.Info("SHOULD RUN Reload() here")
|
||||
}
|
||||
}
|
||||
okExit("")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue