Write patches into the temp folder.
Create a folder for a patch package.
Create a zip package.
Set the current path to the repo workspace.