summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-08-13 15:13:12 (GMT)
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-08-13 15:13:12 (GMT)
commit17ddcdf4f13e40b5730b0f45988721953ea0dbd4 (patch)
treea9a43e286f850bb04a0086fdd7230637556d01e8
parent20c28abbfe6b00b36b25d271e0d2bbbbfca0f1b4 (diff)
downloaddefinitions-17ddcdf4f13e40b5730b0f45988721953ea0dbd4.tar.gz
Remove autodectected morph fields from chunks
-rwxr-xr-xscripts/migrate-chunks2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/migrate-chunks b/scripts/migrate-chunks
index 104076f..d74a959 100755
--- a/scripts/migrate-chunks
+++ b/scripts/migrate-chunks
@@ -141,6 +141,8 @@ def download_chunks(morph):
if err.code == 404:
print 'WARNING: %s not found in %s.' \
'Expected autodetection at build time' %(name, repo)
+ # Remove morph field from autodetected chunks
+ del chunk['morph']
except morphlib.morphloader.InvalidFieldError as err:
print "ERROR: %s in chunk %s." % (err, chunk_morph)
if "comments" in str(err):