crowdin: Fix detection of CMHome
Change-Id: I2c705665921e9680e4dcd5962f3be19d9fc3cb09
diff --git a/cm_crowdin_sync_all.py b/cm_crowdin_sync_all.py
index b641509..8d55355 100755
--- a/cm_crowdin_sync_all.py
+++ b/cm_crowdin_sync_all.py
@@ -424,7 +424,7 @@
# Remove the \n at the end of each line
path = path.rstrip()
# Get project root dir from Crowdin's output
- m = re.search('/(.*Superuser)/Superuser.*|/(.*LatinIME).*|/(frameworks/base).*|/(.*CMFileManager).*|/(device/.*/.*)/.*/res/values.*|/(hardware/.*/.*)/.*/res/values.*|/(.*)/res/values.*', path)
+ m = re.search('/(.*Superuser)/Superuser.*|/(.*LatinIME).*|/(frameworks/base).*|/(.*CMFileManager).*|/(.*CMHome).*|/(device/.*/.*)/.*/res/values.*|/(hardware/.*/.*)/.*/res/values.*|/(.*)/res/values.*', path)
for good_path in m.groups():
# When a project has multiple translatable files, Crowdin will give duplicates.
# We don't want that (useless empty commits), so we save each project in all_projects