[gnome-continuous] builddisks: If doing a local build, remove old data
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous] builddisks: If doing a local build, remove old data
- Date: Thu, 14 Nov 2013 15:31:03 +0000 (UTC)
commit d29283df4ba002dc6e153b18685071012a3aa3c8
Author: Colin Walters <walters verbum org>
Date: Wed Nov 13 15:35:17 2013 -0500
builddisks: If doing a local build, remove old data
This is actually not what we want...we should be reusing the cached
disk from last time. Doing so just uglifies the code more.
Hm, really we should move the previous disks into cache/raw.
src/js/tasks/task-builddisks.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/js/tasks/task-builddisks.js b/src/js/tasks/task-builddisks.js
index bd459e3..06d4ccc 100644
--- a/src/js/tasks/task-builddisks.js
+++ b/src/js/tasks/task-builddisks.js
@@ -74,6 +74,7 @@ const TaskBuildDisks = new Lang.Class({
GSystem.file_ensure_directory(workImageDir, true, cancellable);
let destPath = workImageDir.get_child('build-' + this._buildName + '.json');
+ GSystem.shutil_rm_rf(destPath, cancellable);
GSystem.file_linkcopy(buildDataPath, destPath, Gio.FileCopyFlags.ALL_METADATA, cancellable);
let targets = buildData['targets'];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]