build.plat: add iter_extra_files method.
* vendor.*: employ iter_extra_files.
This commit is contained in:
parent
ea25806971
commit
20553b1478
5 changed files with 19 additions and 24 deletions
|
|
@ -281,3 +281,6 @@ class TemplatedPlatform(Platform):
|
|||
for filename, content in self.extra_files.items():
|
||||
plan.add_file(filename, content)
|
||||
return plan
|
||||
|
||||
def iter_extra_files(self, *endswith):
|
||||
return (f for f in self.extra_files if f.endswith(endswith))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue