Created
January 14, 2017 04:40
-
-
Save tedder/b6af9b01fd422450fc3dea37dd982fd4 to your computer and use it in GitHub Desktop.
duplicity b2backend progress patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ diff b2backend.py b2backend-changes.py | |
30c30 | |
< from duplicity import log | |
--- | |
> from duplicity import log, progress | |
116a117,119 | |
> file_size = os.path.getsize(source_path.name) | |
> progress.report_transfer(0, file_size) | |
> | |
122c125 | |
< 'Content-Length': str(os.path.getsize(source_path.name)), | |
--- | |
> 'Content-Length': str(file_size), | |
125a129 | |
> progress.report_transfer(file_size, file_size) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment