From 7abcaa0d9d34b9629b88b4e9ddf62ca0f76ade6b Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 11 Mar 2016 23:37:37 +0100 Subject: [PATCH] fix reproducible build of api docs --- borg/archive.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/borg/archive.py b/borg/archive.py index 8d6818aa3..791caaa7f 100644 --- a/borg/archive.py +++ b/borg/archive.py @@ -131,8 +131,7 @@ class Archive: 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 @@ class Archive: 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: