build.plat: add iter_extra_files method.

* vendor.*: employ iter_extra_files.
This commit is contained in:
Alain Péteut 2019-07-02 10:44:12 +02:00 committed by whitequark
parent ea25806971
commit 20553b1478
5 changed files with 19 additions and 24 deletions

View file

@ -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))