task: Clean up previous dir before executing
This is mainly useful for local builds.
This commit is contained in:
parent
a7d2f081e5
commit
e3eb4d1735
@ -398,6 +398,7 @@ const TaskRunner = new Lang.Class({
|
|||||||
|
|
||||||
this.buildName = this.workdir.get_relative_path(this.buildPath);
|
this.buildName = this.workdir.get_relative_path(this.buildPath);
|
||||||
this.taskCwd = this.buildPath.get_child(this.name);
|
this.taskCwd = this.buildPath.get_child(this.name);
|
||||||
|
GSystem.shutil_rm_rf(this.taskCwd, cancellable);
|
||||||
GSystem.file_ensure_directory(this.taskCwd, false, cancellable);
|
GSystem.file_ensure_directory(this.taskCwd, false, cancellable);
|
||||||
|
|
||||||
let baseArgv = ['rpm-ostree-autobuilder', 'run-task', this.name, JSON.stringify(this.taskData.parameters)];
|
let baseArgv = ['rpm-ostree-autobuilder', 'run-task', this.name, JSON.stringify(this.taskData.parameters)];
|
||||||
|
Loading…
Reference in New Issue
Block a user