提交 4392863a 编写于 作者: J John McCutchan

Merge pull request #374 from johnmccutchan/apply_patches

Automatically apply patches for mojo and chromium rolls
......@@ -128,14 +128,23 @@ def main():
args = parser.parse_args()
patches_dir = os.path.join(args.dest_dir, 'sky', 'tools', 'roll', 'patches')
if args.mojo_dir:
rev(args.mojo_dir, args.dest_dir, dirs_from_mojo, 'mojo')
try:
patch.patch_and_filter(os.path.join(patches_dir, 'mojo'))
except subprocess.CalledProcessError:
print "ERROR: Roll failed due to a patch not applying"
print "Fix the patch to apply, commit the result, and re-run this script"
return 1
if args.chromium_dir:
rev(args.chromium_dir, args.dest_dir, dirs_from_chromium, 'chromium')
try:
patch.patch_and_filter(args.dest_dir)
patch.patch_and_filter(os.path.join(patches_dir, 'chromium'))
except subprocess.CalledProcessError:
print "ERROR: Roll failed due to a patch not applying"
print "Fix the patch to apply, commit the result, and re-run this script"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册