Skip to content

Instantly share code, notes, and snippets.

@tedder
Created January 14, 2017 04:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tedder/b6af9b01fd422450fc3dea37dd982fd4 to your computer and use it in GitHub Desktop.
Save tedder/b6af9b01fd422450fc3dea37dd982fd4 to your computer and use it in GitHub Desktop.
duplicity b2backend progress patch
$ 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