crowdin: Add checks for user-specific config files
Also fixup a comment
Change-Id: I1f8be54e042af4971ae54bff059f99dd8f5f558c
diff --git a/crowdin_sync.py b/crowdin_sync.py
index b9f10a1..017392a 100755
--- a/crowdin_sync.py
+++ b/crowdin_sync.py
@@ -336,6 +336,18 @@
else:
print('Found: crowdin/caf.xml')
+# Check for crowdin/config_aosp.yaml
+if not os.path.isfile('crowdin/config_aosp.yaml'):
+ sys.exit('You have no crowdin/config_aosp.yaml. Terminating.')
+else:
+ print('Found: crowdin/config_aosp.yaml')
+
+# Check for crowdin/config_cm.yaml
+if not os.path.isfile('crowdin/config_cm.yaml'):
+ sys.exit('You have no crowdin/config_cm.yaml. Terminating.')
+else:
+ print('Found: crowdin/config_cm.yaml')
+
# Check for crowdin/crowdin_aosp.yaml
if not os.path.isfile('crowdin/crowdin_aosp.yaml'):
sys.exit('You have no crowdin/crowdin_aosp.yaml. Terminating.')
@@ -585,7 +597,7 @@
# No match found, go to next item
continue
- # Define branch (custom branch if defined in xml file, otherwise 'cm-11.0'
+ # Define branch (custom branch if defined in xml file, otherwise the default one)
if project_item.hasAttribute('revision'):
branch = project_item.attributes['revision'].value
else: