[gnome-ostree] snapshot: Actually reuse cached component map



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]