[ostree] ostbuild: Allow specifying components to git fetch
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] ostbuild: Allow specifying components to git fetch
- Date: Thu, 7 Jun 2012 14:20:05 +0000 (UTC)
commit 13b37ddaa2e397fea3ddaca5d8e8c69ff2513e25
Author: Colin Walters <walters verbum org>
Date: Thu Jun 7 10:19:16 2012 -0400
ostbuild: Allow specifying components to git fetch
src/ostbuild/pyostbuild/builtin_resolve.py | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/src/ostbuild/pyostbuild/builtin_resolve.py b/src/ostbuild/pyostbuild/builtin_resolve.py
index 5fe7be5..5109fd1 100755
--- a/src/ostbuild/pyostbuild/builtin_resolve.py
+++ b/src/ostbuild/pyostbuild/builtin_resolve.py
@@ -42,12 +42,20 @@ class OstbuildResolve(builtins.Builtin):
def execute(self, argv):
parser = argparse.ArgumentParser(description=self.short_description)
- parser.add_argument('--manifest', required=True)
- parser.add_argument('--fetch-patches', action='store_true')
- parser.add_argument('--fetch', action='store_true')
+ parser.add_argument('--manifest', required=True,
+ help="Path to manifest file")
+ parser.add_argument('--fetch-patches', action='store_true',
+ help="Git fetch the patches")
+ parser.add_argument('--fetch', action='store_true',
+ help="Also perform a git fetch")
+ parser.add_argument('components', nargs='*',
+ help="List of component names to git fetch")
args = parser.parse_args(argv)
self.args = args
+
+ if len(args.components) > 0 and not args.fetch:
+ fatal("Can't specify components without --fetch")
self.parse_config()
@@ -75,6 +83,7 @@ class OstbuildResolve(builtins.Builtin):
git_mirror_args = ['ostbuild', 'git-mirror', '--manifest=' + args.manifest]
if args.fetch:
git_mirror_args.append('--fetch')
+ git_mirror_args.extend(args.components)
run_sync(git_mirror_args)
patch_revision = buildutil.get_git_version_describe(mirrordir, global_patches_meta['branch'])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]