From 4ec90dbcfe9e295c799e1ade642205f42938d76e Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Fri, 3 Aug 2018 20:30:31 +0000 Subject: [PATCH] version bump. document flush --- src/gam.py | 4 +++- src/var.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gam.py b/src/gam.py index 3e427ed1..aefaddc8 100755 --- a/src/gam.py +++ b/src/gam.py @@ -7618,7 +7618,9 @@ def doDownloadVaultExport(): status, done = downloader.next_chunk() sys.stdout.write(u' Downloaded: {0:>7.2%}\r'.format(status.progress())) sys.stdout.flush() - sys.stdout.write(u'\n Download complete\n') + sys.stdout.write(u'\n Download complete. Flushing to disk...\n') + # Necessary to make sure file is flushed by both Python and OS + # https://stackoverflow.com/a/13762137/1503886 f.flush() os.fsync(f.fileno()) closeFile(f) diff --git a/src/var.py b/src/var.py index bd9bc218..569d9155 100644 --- a/src/var.py +++ b/src/var.py @@ -4,7 +4,7 @@ import platform import re gam_author = u'Jay Lee ' -gam_version = u'4.50' +gam_version = u'4.60' gam_license = u'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' GAM_URL = u'https://git.io/gam'