[ostree] ostbuild: Resolve takes --manifest arg
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] ostbuild: Resolve takes --manifest arg
- Date: Sat, 5 May 2012 13:57:46 +0000 (UTC)
commit b845e0a2bb79fb8fee3f6e0d6375d648c44195b1
Author: Colin Walters <walters verbum org>
Date: Tue May 1 10:21:33 2012 -0400
ostbuild: Resolve takes --manifest arg
src/ostbuild/pyostbuild/builtin_resolve.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/ostbuild/pyostbuild/builtin_resolve.py b/src/ostbuild/pyostbuild/builtin_resolve.py
index 4ddd1ad..fc7ca62 100755
--- a/src/ostbuild/pyostbuild/builtin_resolve.py
+++ b/src/ostbuild/pyostbuild/builtin_resolve.py
@@ -131,6 +131,7 @@ 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', action='store_true')
parser.add_argument('components', nargs='*')
@@ -140,8 +141,8 @@ class OstbuildResolve(builtins.Builtin):
self.parse_config()
self.repo = ostbuildrc.get_key('repo')
- manifest_path = self.ostbuildrc.get_key('manifest')
- self.manifest = json.load(open(manifest_path))
+ self.manifest = json.load(open(args.manifest))
+ self.prefix = self.manifest['prefix']
snapshot = copy.deepcopy(self.manifest)
component_source_list = map(self._resolve_component_meta, self.manifest['components'])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]