From ee5a89c44feb098cc3c75d7310b9af3a55173f29 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 17 Oct 2015 14:16:10 +0300 Subject: Fix empty-line-instead-of-progress-reporting bug --- NEWS | 7 +++++++ genbackupdata | 1 + 2 files changed, 8 insertions(+) diff --git a/NEWS b/NEWS index a1549af..26a8a7c 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,13 @@ NEWS for genbackupdata ====================== +Version 1.9, released UNRELEASED +-------------------------------- + +* Fix progress reporting to always output something, even if the + program ran very fast. Previously, there would just be an empty + line. + Version 1.8, released 2015-07-14 -------------------------------- diff --git a/genbackupdata b/genbackupdata index 66bdefb..ccbe992 100755 --- a/genbackupdata +++ b/genbackupdata @@ -65,6 +65,7 @@ class GenbackupdataApp(cliapp.Application): n = min(self.settings['file-size'], bytes) self.create_file(n) bytes -= n + self.status.flush() self.status.finish() def create_file(self, bytes): -- cgit v1.2.1