diff options
Diffstat (limited to 'reload.go')
| -rw-r--r-- | reload.go | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -2,8 +2,10 @@ package gitpb import ( "strings" + "time" "go.wit.com/log" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) // TODO: fix and clean this up. this is a work in progress @@ -19,11 +21,15 @@ func (repo *Repo) Reload() error { repo.ParseGoSum() // also sets GoPrimitive repo.reloadVersions() repo.setRepoType() + + // this is probably a good place & time to store these + repo.reloadMtimes() + repo.CheckDirty() repo.setRepoState() - // everything has been checked, now save the mtime's - repo.updateMtimes() + // LastUpdate should always be the newest time + repo.Times.LastUpdate = timestamppb.New(time.Now()) return nil } |
