mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
[upstream_utils] Handle edge case in filename matches (#5576)
endswith() leaves files out from subdirectories, which means projects that add new subdirectories won't have those files included when they probably should be.
This commit is contained in:
@@ -45,7 +45,7 @@ def main():
|
||||
]
|
||||
|
||||
include_files = walk_cwd_and_copy_if(
|
||||
lambda dp, f: "include" in dp and f not in include_ignorelist,
|
||||
lambda dp, f: dp.startswith("./include") and f not in include_ignorelist,
|
||||
os.path.join(wpinet, "src/main/native/thirdparty/libuv"),
|
||||
)
|
||||
|
||||
@@ -66,7 +66,7 @@ def main():
|
||||
"sysinfo-memory.c",
|
||||
]
|
||||
src_files = walk_cwd_and_copy_if(
|
||||
lambda dp, f: "src" in dp and "docs" not in dp and f not in src_ignorelist,
|
||||
lambda dp, f: dp.startswith("./src") and f not in src_ignorelist,
|
||||
os.path.join(wpinet, "src/main/native/thirdparty/libuv"),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user