@@ -87,6 +87,7 @@ listview_pat = re.compile(r'.*\ ListView {')
87gridview_pat = re.compile(r'.*\ GridView {')
87gridview_pat = re.compile(r'.*\ GridView {')
88flickable_pats = [flickable_pat, listview_pat, gridview_pat]
88flickable_pats = [flickable_pat, listview_pat, gridview_pat]
89unity_components_pat = re.compile(r'.*import ".*Components"')
89unity_components_pat = re.compile(r'.*import ".*Components"')
90+components_import_pat = re.compile(r'.*import "."')
90components_path = re.compile(r'.*qml/Components.*')
91components_path = re.compile(r'.*qml/Components.*')
92def scan_for_flickable_imports(file_path, component_pats, qtquick_pat, unitycomponents_pat):
93def scan_for_flickable_imports(file_path, component_pats, qtquick_pat, unitycomponents_pat):
@@ -161,6 +162,9 @@ try:
161 if not components_path.match(path):
162 if not components_path.match(path):
162 if scan_for_flickable_imports(path, flickable_pats, quick_good_pat, unity_components_pat):
163 if scan_for_flickable_imports(path, flickable_pats, quick_good_pat, unity_components_pat):
163 found_bad_import = True
164 found_bad_import = True
166+ if scan_for_flickable_imports(path, flickable_pats, quick_good_pat, components_import_pat):
167+ found_bad_import = True
165except OSError as e:
169except OSError as e:
166 error("cannot create file list for \"" + dir + "\": " + e.strerror)
170 error("cannot create file list for \"" + dir + "\": " + e.strerror)