[gnome-ostree] testbase: Use the new APIs for writing refs
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] testbase: Use the new APIs for writing refs
- Date: Sat, 7 Sep 2013 00:32:47 +0000 (UTC)
commit a2f9d5046551cba6fd7330c09537893954c6a34e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Sep 6 19:28:37 2013 -0400
testbase: Use the new APIs for writing refs
src/js/tasks/testbase.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/js/tasks/testbase.js b/src/js/tasks/testbase.js
index b9c468e..1718794 100644
--- a/src/js/tasks/testbase.js
+++ b/src/js/tasks/testbase.js
@@ -401,13 +401,15 @@ const TestBase = new Lang.Class({
let buildData = this._buildData;
if (buildJson != null && this.CompletedTag !== null) {
let snapshot = buildData['snapshot'];
+ this.ostreeRepo.prepare_transaction();
for (let targetName in buildData['targets']) {
let targetRev = buildData['targets'][targetName];
let lastSlash = targetName.lastIndexOf('/');
let testedRefName = snapshot['osname'] + '/' + this.CompletedTag +
targetName.substr(lastSlash);
- this.ostreeRepo.write_ref(null, testedRefName, targetRev);
+ this.ostreeRepo.transaction_set_ref(null, testedRefName, targetRev);
print(Format.vprintf("Wrote ref: %s => %s", [testedRefName, targetRev]));
}
+ this.ostreeRepo.commit_transaction();
} else {
print("No build json found, not tagging");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]