From ac1f0a89911d357e3562547d560ae5b7abf7c42f Mon Sep 17 00:00:00 2001 From: Jeremy O'Brien Date: Sun, 16 May 2021 19:00:41 +0000 Subject: [PATCH] Print mirror timestamp(s) when dates don't match --- cmd/obsdpkgup/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/obsdpkgup/main.go b/cmd/obsdpkgup/main.go index 77d1df8..5cac07b 100644 --- a/cmd/obsdpkgup/main.go +++ b/cmd/obsdpkgup/main.go @@ -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)) } }