From: JINMEI Tatuya Date: Tue, 18 Dec 2012 06:36:09 +0000 (-0800) Subject: [2380] added final '\n' to progress report on succesful completion. X-Git-Tag: bind10-1.0.0-beta-release~9^2~14^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ad24f3f000a06f18ee1dba28ea2b38f8512f2c82;p=thirdparty%2Fkea.git [2380] added final '\n' to progress report on succesful completion. --- diff --git a/src/bin/loadzone/loadzone.py.in b/src/bin/loadzone/loadzone.py.in index e94eb64372..b30ed148fb 100755 --- a/src/bin/loadzone/loadzone.py.in +++ b/src/bin/loadzone/loadzone.py.in @@ -241,6 +241,12 @@ class LoadZoneRunner: self._report_progress(self.__loaded_rrs) if self.__interrupted: raise LoadFailure('loading interrupted by signal') + + # On successfully completion, add final '\n' to the progress + # report output (on failure don't bother to make it prettier). + if (self._report_interval > 0 and + self.__loaded_rrs >= self._report_interval): + sys.stdout.write('\n') except Exception as ex: # release any remaining lock held in the client/loader loader, datasrc_client = None, None