From 122b6650e09ee9487492f0d4edd875da0a53ae2a Mon Sep 17 00:00:00 2001 From: Francisco Redondo Marchena Date: Wed, 13 Aug 2014 13:25:12 +0000 Subject: Add strata_path as argument on move_chunks --- scripts/migrate-chunks | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/migrate-chunks b/scripts/migrate-chunks index b8ec9664..a6c48e75 100755 --- a/scripts/migrate-chunks +++ b/scripts/migrate-chunks @@ -114,10 +114,11 @@ def move_chunks(morphs): # There are not spec for this yet print "No spec defined" -def download_chunks(morph): +def download_chunks(morph, strata_path): # Create stratum directory where downloading its chunks. - stratum_path = 'strata/' + morph['name'] + stratum_path = strata_path + morph['name'] subdir = create_directory(stratum_path, definitions_repo) + # Download chunks morphologies defined on the stratum and # add them to the directory tree. for chunk in morph['chunks']: @@ -168,16 +169,16 @@ def download_chunks(morph): def move_strata(morphs): # Create strata directory - stratum_path = 'strata/' + strata_path = 'strata/' subdir = create_directory(stratum_path, definitions_repo) for morph in morphs: # Download chunks which belongs to the stratum - download_chunks(morph) + download_chunks(morph, strata_path) # Add path to the build-depends morphologies for build_depends in morph['build-depends']: build_depends['morph'] = sanitise_morphology_path(build_depends['morph'], 'stratum') - move_file(morph, stratum_path, subdir) + move_file(morph, strata_path, subdir) # Load all morphologies in the definitions repo sb = morphlib.sysbranchdir.open_from_within('.') -- cgit v1.2.1