Pārlūkot izejas kodu

check: No progreess output to stderr during archives check

Jonas Borgström 11 gadi atpakaļ
vecāks
revīzija
11c08f412a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      attic/archive.py

+ 1 - 1
attic/archive.py

@@ -496,7 +496,7 @@ class ArchiveChecker:
     def report_progress(self, msg, error=False):
     def report_progress(self, msg, error=False):
         if error:
         if error:
             self.error_found = True
             self.error_found = True
-        print(msg, file=sys.stderr)
+        print(msg, file=sys.stderr if error else sys.stdout)
         sys.stderr.flush()
         sys.stderr.flush()
 
 
     def identify_key(self, repository):
     def identify_key(self, repository):