浏览代码

rename cache variable to index for clarity

Antoine Beaupré 9 年之前
父节点
当前提交
ce72051284
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      borg/upgrader.py

+ 3 - 3
borg/upgrader.py

@@ -143,10 +143,10 @@ class AtticRepositoryUpgrader(Repository):
         if transaction_id is None:
             logger.warning('no index file found for repository %s' % self.path)
         else:
-            cache = os.path.join(self.path, 'index.%d' % transaction_id).encode('utf-8')
-            logger.info("converting index cache %s" % cache)
+            index = os.path.join(self.path, 'index.%d' % transaction_id).encode('utf-8')
+            logger.info("converting index index %s" % index)
             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()
         attic_cache_dir = os.environ.get('ATTIC_CACHE_DIR',