Skip to content

Commit 32d42ec

Browse files
committed
Hack around incorrect file match in assemble_cvd
Bug: b/461569369
1 parent 3f871d1 commit 32d42ec

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

base/cvd/cuttlefish/host/commands/cvd/fetch/fetch_context.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,11 @@ Result<void> FetchArtifact::ExtractAll(const std::string& local_path) {
136136

137137
fetch_build_context_.DesparseFiles(extracted);
138138
for (const std::string& file : extracted) {
139-
CF_EXPECT(fetch_build_context_.AddFileToConfig(file));
139+
// Hack: avoid assemble_cvd incorrect match against `ti50-emulator-kernel`
140+
// file when it looks for files ending in `kernel`. b/461569369#comment2
141+
if (!absl::EndsWith(file, "kernel")) {
142+
CF_EXPECT(fetch_build_context_.AddFileToConfig(file));
143+
}
140144
}
141145
}
142146
return {};

0 commit comments

Comments
 (0)