resources : changed name of stage folder
This commit is contained in:
parent
a075d581ef
commit
d3d9b5401b
1 changed files with 2 additions and 3 deletions
|
@ -643,10 +643,9 @@ def do_fetch(self):
|
||||||
##########
|
##########
|
||||||
# Fetch resources
|
# Fetch resources
|
||||||
resources = self._get_resources()
|
resources = self._get_resources()
|
||||||
# FIXME : choose the unique name appropriately. Is there a function somewhere for the base name ?
|
|
||||||
pieces = [self.name, str(self.version), self.spec.dag_hash()]
|
|
||||||
for resource in resources:
|
for resource in resources:
|
||||||
resource_stage_folder = '-'.join(pieces + [resource.name])
|
pieces = ['resource', resource.name, self.spec.dag_hash()]
|
||||||
|
resource_stage_folder = '-'.join(pieces)
|
||||||
stage = Stage(resource.fetcher, name=resource_stage_folder)
|
stage = Stage(resource.fetcher, name=resource_stage_folder)
|
||||||
resource.fetcher.set_stage(stage)
|
resource.fetcher.set_stage(stage)
|
||||||
resource.fetcher.fetch()
|
resource.fetcher.fetch()
|
||||||
|
|
Loading…
Reference in a new issue