[gnome-ostree] zdisks: Also create -devel disk
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] zdisks: Also create -devel disk
- Date: Tue, 30 Apr 2013 01:42:55 +0000 (UTC)
commit c8caf96930db86014b305178b1482b30cd3b9606
Author: Colin Walters <walters verbum org>
Date: Mon Apr 29 21:42:02 2013 -0400
zdisks: Also create -devel disk
This is a much more convenient download for people who know they want
developer tools.
src/js/tasks/task-builddisks.js | 10 +++++++++-
src/js/tasks/task-zdisks.js | 1 +
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/js/tasks/task-builddisks.js b/src/js/tasks/task-builddisks.js
index a992b6c..7a20bc5 100644
--- a/src/js/tasks/task-builddisks.js
+++ b/src/js/tasks/task-builddisks.js
@@ -48,6 +48,7 @@ const TaskBuildDisks = new Lang.Class({
_imageSubdir: 'images',
_inheritPreviousDisk: true,
+ _onlyTreeSuffixes: ['-runtime'],
execute: function(cancellable) {
let subworkdir = Gio.File.new_for_path('.');
@@ -82,7 +83,14 @@ const TaskBuildDisks = new Lang.Class({
let repo = buildData['snapshot']['repo'];
for (let targetName in targets) {
- if (!JSUtil.stringEndswith(targetName, '-runtime'))
+ let matched = false;
+ for (let i = 0; i < this._onlyTreeSuffixes.length; i++) {
+ if (JSUtil.stringEndswith(targetName, this._onlyTreeSuffixes[i])) {
+ matched = true;
+ break;
+ }
+ }
+ if (!matched)
continue;
let targetRevision = buildData['targets'][targetName];
let squashedName = targetName.replace(/\//g, '_');
diff --git a/src/js/tasks/task-zdisks.js b/src/js/tasks/task-zdisks.js
index 815f43e..4f21efc 100644
--- a/src/js/tasks/task-zdisks.js
+++ b/src/js/tasks/task-zdisks.js
@@ -49,6 +49,7 @@ const TaskZDisks = new Lang.Class({
_imageSubdir: 'images/z',
_inheritPreviousDisk: false,
+ _onlyTreeSuffixes: ['-runtime', '-devel'],
_postDiskCreation: function(diskPath, cancellable) {
let parent = diskPath.get_parent();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]