[gnome-ostree] build: Automatically use local builds for git repos in $workdir/overrides/$name
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] build: Automatically use local builds for git repos in $workdir/overrides/$name
- Date: Thu, 11 Apr 2013 17:02:26 +0000 (UTC)
commit 2dc9e8aea28f670af6ad1f6b440e4273855e2faa
Author: Colin Walters <walters verbum org>
Date: Thu Apr 11 04:32:34 2013 -0400
build: Automatically use local builds for git repos in $workdir/overrides/$name
This is just a lot less tedious than editing the manifest.
src/js/tasks/task-build.js | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/js/tasks/task-build.js b/src/js/tasks/task-build.js
index 94dce79..a771698 100644
--- a/src/js/tasks/task-build.js
+++ b/src/js/tasks/task-build.js
@@ -907,6 +907,17 @@ const TaskBuild = new Lang.Class({
let targetSourceVersion = builddb.parseVersionStr(this._snapshot.path.get_basename());
+ // Pick up overrides from $workdir/overrides/$name
+ for (let i = 0; i < components.length; i++) {
+ let component = components[i];
+ let name = component['name'];
+ let overridePath = this.workdir.resolve_relative_path('overrides/' + name);
+ if (overridePath.query_exists(null)) {
+ print("Using override: " + overridePath.get_path());
+ component['src'] = 'local:' + overridePath.get_path();
+ }
+ }
+
let haveLocalComponent = false;
for (let i = 0; i < components.length; i++) {
let component = components[i];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]