mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-26 09:47:58 +00:00
rename cache variable to index for clarity
This commit is contained in:
parent
07e7f2dcad
commit
ce72051284
1 changed files with 3 additions and 3 deletions
|
@ -143,10 +143,10 @@ def convert_cache(self, dryrun):
|
||||||
if transaction_id is None:
|
if transaction_id is None:
|
||||||
logger.warning('no index file found for repository %s' % self.path)
|
logger.warning('no index file found for repository %s' % self.path)
|
||||||
else:
|
else:
|
||||||
cache = os.path.join(self.path, 'index.%d' % transaction_id).encode('utf-8')
|
index = os.path.join(self.path, 'index.%d' % transaction_id).encode('utf-8')
|
||||||
logger.info("converting index cache %s" % cache)
|
logger.info("converting index index %s" % index)
|
||||||
if not dryrun:
|
if not dryrun:
|
||||||
AtticRepositoryUpgrader.header_replace(cache, b'ATTICIDX', b'BORG_IDX')
|
AtticRepositoryUpgrader.header_replace(index, b'ATTICIDX', b'BORG_IDX')
|
||||||
|
|
||||||
# copy of attic's get_cache_dir()
|
# copy of attic's get_cache_dir()
|
||||||
attic_cache_dir = os.environ.get('ATTIC_CACHE_DIR',
|
attic_cache_dir = os.environ.get('ATTIC_CACHE_DIR',
|
||||||
|
|
Loading…
Reference in a new issue