chore: deprecate apply-patches in favour of git-{import,export}-patches (#15300)

This commit is contained in:
Jeremy Apthorp 2018-10-24 11:24:11 -07:00 committed by GitHub
parent 4185efa08f
commit 335e9f68b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
123 changed files with 4368 additions and 4780 deletions

View file

@ -0,0 +1,36 @@
#!/usr/bin/env python
from lib import git
from lib.patches import patch_from_dir
patch_dirs = {
'src/electron/patches/common/chromium':
'src',
'src/electron/patches/common/boringssl':
'src/third_party/boringssl/src',
'src/electron/patches/common/ffmpeg':
'src/third_party/ffmpeg',
'src/electron/patches/common/skia':
'src/third_party/skia',
'src/electron/patches/common/v8':
'src/v8',
}
def apply_patches(dirs):
for patch_dir, repo in dirs.iteritems():
git.am(repo=repo, patch_data=patch_from_dir(patch_dir),
committer_name="Electron Scripts", committer_email="scripts@electron")
def main():
apply_patches(patch_dirs)
if __name__ == '__main__':
main()