Skip to content

Commit

Permalink
Pass patch_list to constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
KangarooKoala committed Jul 15, 2024
1 parent f9fc616 commit f690aa1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions upstream_utils/update_mpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,7 @@ def open_repo(self, *, err_msg_if_absent):
os.chdir(dest)

def apply_patches(self):
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",
]:
for f in self.patch_list:
git_am(
os.path.join(
self.wpilib_root, f"upstream_utils/{self.name}_patches", f
Expand All @@ -89,7 +84,7 @@ def main():
"0004-Group-doxygen-into-MPack-module.patch",
]

mpack = Lib(name, url, tag, [], lambda: None)
mpack = Lib(name, url, tag, patch_list, lambda: None)
mpack.clone()

wpilib_root = mpack.wpilib_root
Expand Down

0 comments on commit f690aa1

Please sign in to comment.