summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-08-13 13:51:43 (GMT)
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-08-13 13:51:43 (GMT)
commitdc2143086d1dc6b801fc345a92063c912cf3e50e (patch)
treec04c0671665c113d689b7958418402d084222993
parent055ae22e20adae4f55aa60766ad4e41b32ce3049 (diff)
downloaddefinitions-dc2143086d1dc6b801fc345a92063c912cf3e50e.tar.gz
Fix some log
-rwxr-xr-xscripts/migrate-chunks8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/migrate-chunks b/scripts/migrate-chunks
index 833cf70..a636425 100755
--- a/scripts/migrate-chunks
+++ b/scripts/migrate-chunks
@@ -139,7 +139,7 @@ def download_chunks(morph):
# system will be autodetected, so we don't have to create a new one
# unless we shut down the autodetecting system (fallback system).
if err.code == 404:
- print "%s not found in %s" %(name, repo)
+ print "WARNING: %s not found in %s. Expected autodetection on builds" %(name, repo)
except morphlib.morphloader.InvalidFieldError as err:
print "ERROR: %s in chunk \n%s" % (err, chunk_morph)
if "comments" in str(err):
@@ -150,14 +150,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 into %s" %(name, repo, chunk['morph'])
+ print "Fixing error in %s and moving 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 into %s" %(name, repo, chunk['morph'])
+ print "Fixing error in %s and moving 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
@@ -168,7 +168,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 into %s" %(name, repo, chunk['morph'])
+ print "Fixing error in %s and moving into %s" %(name, repo, chunk['morph'])
def move_strata(morphs):
# Create strata directory