From a21c3f79ab79e794545ceff80fd75cb81301982c Mon Sep 17 00:00:00 2001 From: Eloston Date: Sat, 23 Mar 2019 22:51:39 +0000 Subject: [PATCH] utils/patches.py: Fix argparse errors Fixes #717 --- utils/patches.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/patches.py b/utils/patches.py index 0b61ad3e..ce5087df 100755 --- a/utils/patches.py +++ b/utils/patches.py @@ -112,7 +112,7 @@ def _apply_callback(args): logger.info('Applying patches from %s', patch_dir) apply_patches( generate_patches_from_series(patch_dir, resolve=True), - args.directory, + args.target, patch_bin_path=args.patch_bin) @@ -126,7 +126,7 @@ def main(): subparsers = parser.add_subparsers() apply_parser = subparsers.add_parser( - 'apply', help='Applies a config bundle\'s patches to the specified source tree') + 'apply', help='Applies patches (in GNU Quilt format) to the specified source tree') apply_parser.add_argument( '--patch-bin', help='The GNU patch command to use. Omit to find it automatically.') apply_parser.add_argument('target', type=Path, help='The directory tree to apply patches onto.')