[gnome-ostree] build: Fix up regressions from previous commit
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] build: Fix up regressions from previous commit
- Date: Sat, 22 Sep 2012 22:31:43 +0000 (UTC)
commit dbdecbea7f9bc7987ff9c7aef037dbcf1f5d28c3
Author: Colin Walters <walters verbum org>
Date: Sat Sep 22 18:30:24 2012 -0400
build: Fix up regressions from previous commit
We need to write out the *expanded* metadata, not the default one.
Also drop "artifact_meta" in favor of the expanded_component we
already have.
src/ostbuild/pyostbuild/builtin_build.py | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/ostbuild/pyostbuild/builtin_build.py b/src/ostbuild/pyostbuild/builtin_build.py
index d54df53..34b7878 100755
--- a/src/ostbuild/pyostbuild/builtin_build.py
+++ b/src/ostbuild/pyostbuild/builtin_build.py
@@ -300,8 +300,6 @@ class OstbuildBuild(builtins.Builtin):
os.unlink(temp_metadata_path)
- artifact_meta = dict(component)
-
logdir = os.path.join(self.workdir, 'logs', buildname)
fileutil.ensure_dir(logdir)
log_path = os.path.join(logdir, 'compile.log')
@@ -366,7 +364,7 @@ class OstbuildBuild(builtins.Builtin):
recorded_meta_path = os.path.join(component_resultdir, '_ostbuild-meta.json')
recorded_meta_f = open(recorded_meta_path, 'w')
- json.dump(component, recorded_meta_f, indent=4, sort_keys=True)
+ json.dump(expanded_component, recorded_meta_f, indent=4, sort_keys=True)
recorded_meta_f.close()
args = ['ostree', '--repo=' + self.repo,
@@ -374,7 +372,7 @@ class OstbuildBuild(builtins.Builtin):
'--owner-uid=0', '--owner-gid=0', '--no-xattrs',
'--skip-if-unchanged']
- setuid_files = artifact_meta.get('setuid', [])
+ setuid_files = expanded_component.get('setuid', [])
statoverride_path = None
if len(setuid_files) > 0:
(fd, statoverride_path) = tempfile.mkstemp(suffix='.txt', prefix='ostbuild-statoverride-')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]