mirror of https://github.com/borgbackup/borg.git
fix reproducible build of api docs
This commit is contained in:
parent
95f928699b
commit
7abcaa0d9d
|
@ -131,8 +131,7 @@ class Archive:
|
||||||
|
|
||||||
def __init__(self, repository, key, manifest, name, cache=None, create=False,
|
def __init__(self, repository, key, manifest, name, cache=None, create=False,
|
||||||
checkpoint_interval=300, numeric_owner=False, progress=False,
|
checkpoint_interval=300, numeric_owner=False, progress=False,
|
||||||
chunker_params=CHUNKER_PARAMS,
|
chunker_params=CHUNKER_PARAMS, start=None, end=None):
|
||||||
start=datetime.utcnow(), end=datetime.utcnow()):
|
|
||||||
self.cwd = os.getcwd()
|
self.cwd = os.getcwd()
|
||||||
self.key = key
|
self.key = key
|
||||||
self.repository = repository
|
self.repository = repository
|
||||||
|
@ -144,7 +143,11 @@ class Archive:
|
||||||
self.name = name
|
self.name = name
|
||||||
self.checkpoint_interval = checkpoint_interval
|
self.checkpoint_interval = checkpoint_interval
|
||||||
self.numeric_owner = numeric_owner
|
self.numeric_owner = numeric_owner
|
||||||
|
if start is None:
|
||||||
|
start = datetime.utcnow()
|
||||||
self.start = start
|
self.start = start
|
||||||
|
if end is None:
|
||||||
|
end = datetime.utcnow()
|
||||||
self.end = end
|
self.end = end
|
||||||
self.pipeline = DownloadPipeline(self.repository, self.key)
|
self.pipeline = DownloadPipeline(self.repository, self.key)
|
||||||
if create:
|
if create:
|
||||||
|
|
Loading…
Reference in New Issue