equal
deleted
inserted
replaced
44 the source tree. |
44 the source tree. |
45 """ |
45 """ |
46 def __init__(self, _file): |
46 def __init__(self, _file): |
47 """The constructor """ |
47 """The constructor """ |
48 symbian.log.Parser.__init__(self, _file) |
48 symbian.log.Parser.__init__(self, _file) |
49 self.__match_what = re.compile("abld(\.bat)?(\s+.*)*\s+-w(hat)?", re.I) |
49 self.__match_what = re.compile("abld(\.bat)?(\s+.*)*\s+-(check)?w(hat)?", re.I) |
50 self.internalexports = {} |
50 self.internalexports = {} |
51 |
51 |
52 def task(self, name, _cmd, _dir, content): |
52 def task(self, name, _cmd, _dir, content): |
53 """ Analyse task log. """ |
53 """ Analyse task log. """ |
54 if self.__match_what.match(_cmd) != None: |
54 if self.__match_what.match(_cmd) != None: |
66 an "abld -what" analyser which sort the generated files by component. |
66 an "abld -what" analyser which sort the generated files by component. |
67 """ |
67 """ |
68 def __init__(self, _file): |
68 def __init__(self, _file): |
69 """The constructor """ |
69 """The constructor """ |
70 symbian.log.Parser.__init__(self, _file) |
70 symbian.log.Parser.__init__(self, _file) |
71 self.__match_what = re.compile(r"abld(\.bat)?(\s+.*)*\s+-w(hat)?", re.I) |
71 self.__match_what = re.compile(r"abld(\.bat)?(\s+.*)*\s+-(check)?w(hat)?", re.I) |
72 self.__match_cmaker_what = re.compile(r"cmaker(\.cmd)?(\s+.*)*\s+ACTION=what", re.I) |
72 self.__match_cmaker_what = re.compile(r"cmaker(\.cmd)?(\s+.*)*\s+ACTION=what", re.I) |
73 self.files_per_component = {} |
73 self.files_per_component = {} |
74 self.components_per_file = {} |
74 self.components_per_file = {} |
75 |
75 |
76 def task(self, name, _cmd, _dir, content): |
76 def task(self, name, _cmd, _dir, content): |
178 filename = self.find_policy(dirpath) |
178 filename = self.find_policy(dirpath) |
179 if filename != None: |
179 if filename != None: |
180 for result in self.validate_content(filename): |
180 for result in self.validate_content(filename): |
181 yield result |
181 yield result |
182 else: |
182 else: |
183 yield ['missing', dirpath, None] |
183 # report an error is the directory has no DP file |
|
184 # and any files underneith. |
|
185 for item in os.listdir(dirpath): |
|
186 if os.path.isfile(os.path.join(dirpath, item)): |
|
187 yield ['missing', dirpath, None] |
|
188 break |
184 |
189 |