1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 01:06:50 +00:00

Merge pull request #736 from ThomasWaldmann/fix-reproducible

fix reproducible build of api docs, fixes #399
This commit is contained in:
TW 2016-03-12 00:09:13 +01:00
commit b2b5ca718c

View file

@ -131,8 +131,7 @@ class IncompatibleFilesystemEncodingError(Error):
def __init__(self, repository, key, manifest, name, cache=None, create=False,
checkpoint_interval=300, numeric_owner=False, progress=False,
chunker_params=CHUNKER_PARAMS,
start=datetime.utcnow(), end=datetime.utcnow()):
chunker_params=CHUNKER_PARAMS, start=None, end=None):
self.cwd = os.getcwd()
self.key = key
self.repository = repository
@ -144,7 +143,11 @@ def __init__(self, repository, key, manifest, name, cache=None, create=False,
self.name = name
self.checkpoint_interval = checkpoint_interval
self.numeric_owner = numeric_owner
if start is None:
start = datetime.utcnow()
self.start = start
if end is None:
end = datetime.utcnow()
self.end = end
self.pipeline = DownloadPipeline(self.repository, self.key)
if create: