[gnome-ostree] snapshot: Actually reuse cached component map
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] snapshot: Actually reuse cached component map
- Date: Wed, 23 Jan 2013 22:55:09 +0000 (UTC)
commit 79219192cb11a1ab918f59644c73ccb4c5ffba5f
Author: Colin Walters <walters verbum org>
Date: Wed Jan 23 17:35:36 2013 -0500
snapshot: Actually reuse cached component map
src/ostbuild/js/snapshot.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/ostbuild/js/snapshot.js b/src/ostbuild/js/snapshot.js
index 2d6846b..024ae16 100644
--- a/src/ostbuild/js/snapshot.js
+++ b/src/ostbuild/js/snapshot.js
@@ -99,8 +99,7 @@ const Snapshot = new Lang.Class({
},
getComponent: function(name, allowNone) {
- let d = _componentDict(this.data);
- let r = d[name] || null;
+ let r = this._componentDict[name] || null;
if (!r && !allowNone)
throw new Error("No component " + name + " in snapshot");
return r;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]