diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2014-08-13 08:54:10 +0000 |
---|---|---|
committer | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2014-08-13 08:54:10 +0000 |
commit | 82e3132d12e3accaed18704c4984a71fc7dfce44 (patch) | |
tree | 7a2be8b8e02c82ecae7a48346a1f99e7e10068ff | |
parent | 969df92a3605ec2be0cbf6c8e12c2dc3f348cce6 (diff) | |
download | definitions-82e3132d12e3accaed18704c4984a71fc7dfce44.tar.gz |
WIP: Fix some string
-rwxr-xr-x | scripts/migrate-chunks | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/migrate-chunks b/scripts/migrate-chunks index 74a7a836..fb33f8ad 100755 --- a/scripts/migrate-chunks +++ b/scripts/migrate-chunks @@ -135,7 +135,7 @@ def download_chunks(morph): chunk_morph = cat_file(repo, ref, name) new_chunk = loader.load_from_string(chunk_morph) loader.save_to_file(chunk['morph'], new_chunk) - print "Downloading %s from %s and placing in %s" %(name, repo, chunk['morph']) + print "Downloading %s from %s into %s" %(name, repo, chunk['morph']) except urllib2.HTTPError as err: # If there is no morphology in the repository we assume that the morphology # system will be autodetected, so we don't have to create a new one @@ -152,14 +152,14 @@ def download_chunks(morph): fixed_chunk = loader.parse_morphology_text(chunk_morph, name) fixed_chunk['description'] = fixed_chunk.pop('comments') loader.save_to_file(chunk['morph'], fixed_chunk) - print "Downloading %s from %s and placing in %s" %(name, repo, chunk['morph']) + print "Downloading %s from %s into %s" %(name, repo, chunk['morph']) if "buildsystem" in str(err): # This error is caused because a typo in a morphology which # has a field "buildsystem" instead of "build-system". fixed_chunk = loader.parse_morphology_text(chunk_morph, name) fixed_chunk['build-system'] = fixed_chunk.pop('buildsystem') loader.save_to_file(chunk['morph'], fixed_chunk) - print "Downloading %s from %s and placing in %s" %(name, repo, chunk['morph']) + print "Downloading %s from %s into %s" %(name, repo, chunk['morph']) except morphlib.morphloader.MorphologyNotYamlError as err: print "ERROR: %s in chunk \n%s" % (err, chunk_morph) # This error is caused because there are old morphologies written @@ -170,7 +170,7 @@ def download_chunks(morph): fix_chunk = chunk_morph.replace('\t','') new_chunk = loader.load_from_string(fix_chunk) loader.save_to_file(chunk['morph'], new_chunk) - print "Downloading %s from %s and placing in %s" %(name, repo, chunk['morph']) + print "Downloading %s from %s into %s" %(name, repo, chunk['morph']) def move_strata(morphs): |