def load_layer_index(self):
# Load Layer_Index
# Check if we have a mirror-index, and load it if we do...
mirror_index_path = self.load_mirror_index(self.base_url + '/mirror-index')
# Mirror also has a copy of the associated XML bits
if mirror_index_path:
self.xml_dir = os.path.join(mirror_index_path, 'xml')
# Setup replace strings as late as possible. The various self.* values
# may be modified prior to this place.
replace = []
replace = replace + settings.REPLACE
replace = replace + [
( '#INSTALL_DIR#', self.install_dir ),
( '#BASE_URL#', self.base_url ),
( '#BASE_BRANCH#', self.base_branch ),
]
self.index = Layer_Index(indexcfg=settings.INDEXES, base_branch=self.base_branch, replace=replace, mirror=mirror_index_path)
评论列表
文章目录