|
39 | 39 |
|
40 | 40 | @attr.s() |
41 | 41 | class BaseBuildManifestPackage(models.Package): |
42 | | - metafiles = tuple() |
| 42 | + file_patterns = tuple() |
43 | 43 |
|
44 | 44 | @classmethod |
45 | 45 | def recognize(cls, location): |
@@ -68,12 +68,12 @@ def _is_build_manifest(cls, location): |
68 | 68 | if not filetype.is_file(location): |
69 | 69 | return False |
70 | 70 | fn = fileutils.file_name(location) |
71 | | - return any(fn == mf for mf in cls.metafiles) |
| 71 | + return any(fn == mf for mf in cls.file_patterns) |
72 | 72 |
|
73 | 73 |
|
74 | 74 | @attr.s() |
75 | 75 | class AutotoolsPackage(BaseBuildManifestPackage): |
76 | | - metafiles = ('configure', 'configure.ac',) |
| 76 | + file_patterns = ('configure', 'configure.ac',) |
77 | 77 | default_type = 'autotools' |
78 | 78 |
|
79 | 79 |
|
@@ -175,19 +175,19 @@ def compute_normalized_license(self): |
175 | 175 |
|
176 | 176 | @attr.s() |
177 | 177 | class BazelPackage(StarlarkManifestPackage): |
178 | | - metafiles = ('BUILD',) |
| 178 | + file_patterns = ('BUILD',) |
179 | 179 | default_type = 'bazel' |
180 | 180 |
|
181 | 181 |
|
182 | 182 | @attr.s() |
183 | 183 | class BuckPackage(StarlarkManifestPackage): |
184 | | - metafiles = ('BUCK',) |
| 184 | + file_patterns = ('BUCK',) |
185 | 185 | default_type = 'buck' |
186 | 186 |
|
187 | 187 |
|
188 | 188 | @attr.s() |
189 | 189 | class MetadataBzl(BaseBuildManifestPackage): |
190 | | - metafiles = ('METADATA.bzl',) |
| 190 | + file_patterns = ('METADATA.bzl',) |
191 | 191 | # TODO: Not sure what the default type should be, change this to something |
192 | 192 | # more appropriate later |
193 | 193 | default_type = 'METADATA.bzl' |
|
0 commit comments