Skip to content

Commit

Permalink
Substitute patch list and name in apply_patches
Browse files Browse the repository at this point in the history
  • Loading branch information
KangarooKoala committed Jul 15, 2024
1 parent 46cb5d6 commit a9feabb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions upstream_utils/update_mpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,15 @@ def open_repo(self, *, err_msg_if_absent):
os.chdir(dest)

def apply_patches(self):
for f in self.patch_list:
for f in [
"0001-Don-t-emit-inline-defs.patch",
"0002-Update-amalgamation-script.patch",
"0003-Use-namespace-for-C.patch",
"0004-Group-doxygen-into-MPack-module.patch",
]:
git_am(
os.path.join(
self.wpilib_root, f"upstream_utils/{self.name}_patches", f
self.wpilib_root, "upstream_utils/mpack_patches", f
),
)

Expand Down

0 comments on commit a9feabb

Please sign in to comment.