From d3f2ebfa80e9b514ed94a0f4fc76c6bef7e71006 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 24 Jul 2020 12:08:15 +0300 Subject: [PATCH] Use stderr for -fsck errors --- VERSION | 2 +- gocheese.go | 2 +- install.texi | 2 +- integrity.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 276cbf9..197c4d5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.3.0 +2.4.0 diff --git a/gocheese.go b/gocheese.go index 905856d..70573b8 100644 --- a/gocheese.go +++ b/gocheese.go @@ -93,7 +93,7 @@ var ( pypiURL = flag.String("pypi", "https://pypi.org/simple/", "Upstream PyPI URL") passwdPath = flag.String("passwd", "passwd", "Path to file with authenticators") passwdCheck = flag.Bool("passwd-check", false, "Test the -passwd file for syntax errors and exit") - fsck = flag.Bool("fsck", false, "Check integrity of all packages") + fsck = flag.Bool("fsck", false, "Check integrity of all packages (errors are in stderr)") maxClients = flag.Int("maxclients", 128, "Maximal amount of simultaneous clients") version = flag.Bool("version", false, "Print version information") warranty = flag.Bool("warranty", false, "Print warranty information") diff --git a/install.texi b/install.texi index dc95c2d..19a9c06 100644 --- a/install.texi +++ b/install.texi @@ -1,7 +1,7 @@ @node Install @unnumbered Install -@set VERSION 2.3.0 +@set VERSION 2.4.0 Preferable way is to download tarball with the signature from website and, for example, run tests with benchmarks: diff --git a/integrity.go b/integrity.go index 8829348..dc9c51e 100644 --- a/integrity.go +++ b/integrity.go @@ -64,7 +64,7 @@ func goodIntegrity() bool { fmt.Println(pkgName, "GOOD") } else { isGood = false - fmt.Println(pkgName, "BAD") + fmt.Fprintln(os.Stderr, pkgName, "BAD") } hasher.Reset() } -- 2.44.0