Skip to content

Commit

Permalink
Print mirror timestamp(s) when dates don't match
Browse files Browse the repository at this point in the history
  • Loading branch information
neutralinsomniac committed May 16, 2021
1 parent c520dff commit ac1f0a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/obsdpkgup/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,12 @@ func main() {
if !pkgUpQuirksDate.Equal(mirrorQuirksDate) {
if pkgUpQuirksDate.After(mirrorQuirksDate) {
fmt.Fprintf(os.Stderr, "WARNING: pkgup index appears to be newer than packages on configured mirror.\n")
fmt.Fprintf(os.Stderr, "configured mirror: %s\n", mirrorQuirksDate.Format(time.RFC1123Z))
fmt.Fprintf(os.Stderr, "pkgup mirror: %s\n", pkgUpQuirksDate.Format(time.RFC1123Z))
} else {
fmt.Fprintf(os.Stderr, "WARNING: pkgup index appears to be older than packages on configured mirror\n")
fmt.Fprintf(os.Stderr, "pkgup mirror: %s\n", pkgUpQuirksDate.Format(time.RFC1123Z))
fmt.Fprintf(os.Stderr, "configured mirror: %s\n", mirrorQuirksDate.Format(time.RFC1123Z))
}
}

Expand Down

0 comments on commit ac1f0a8

Please sign in to comment.