diff --git a/upstream_utils/update_mpack.py b/upstream_utils/update_mpack.py index 8d5066fb038..ed686fa7183 100755 --- a/upstream_utils/update_mpack.py +++ b/upstream_utils/update_mpack.py @@ -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 @@ -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