Commit 19b0080c authored by Reinhard Tartler's avatar Reinhard Tartler

Bug fix: restic 0.9.4 `-q` outputs `open repository`

Closes: #921849
parent 516227b8
commit 60c7020bcb3be64dc1131a8564a7818898a50c83 (upstream/fix-2140)
Author: Alexander Neumann <alexander@bumpern.de>
Date: Thu Jan 10 21:27:56 2019 +0100
Upstream: https://github.com/restic/restic/commit/60c7020bcb3be64dc1131a8564a7818898a50c83
Bug-Debian: http://bug.debian.org/921849
Print message in verbose mode only
Closes #2140
diff --git a/cmd/restic/cmd_backup.go b/cmd/restic/cmd_backup.go
index fc24868a..dff1d31d 100644
--- a/cmd/restic/cmd_backup.go
+++ b/cmd/restic/cmd_backup.go
@@ -395,7 +395,9 @@ func runBackup(opts BackupOptions, gopts GlobalOptions, term *termstatus.Termina
var t tomb.Tomb
- term.Print("open repository\n")
+ if gopts.verbosity >= 2 {
+ term.Print("open repository\n")
+ }
repo, err := OpenRepository(gopts)
if err != nil {
return err
0001-privacy-breach.patch
0002-fix-message-in-quiet-mode.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment