summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/depexp.py
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-08-05 15:16:32 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-06 13:02:27 +0100
commit3412a89dfdb8c07e4745ab04f6420202c3c965b4 (patch)
tree74766b6364d2f52bd7ed7c9977beb68a7e2b8629 /bitbake/lib/bb/ui/depexp.py
parente76fdac6f15f2f80ed888db0dba38b2d2d1db35c (diff)
downloadpoky-3412a89dfdb8c07e4745ab04f6420202c3c965b4.tar.gz
bitbake: depexp: make parse() a member function
(Bitbake rev: e5709f2b5592eb6448c7d10b9aeb7cf3bef4864e) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/depexp.py')
-rw-r--r--bitbake/lib/bb/ui/depexp.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/bitbake/lib/bb/ui/depexp.py b/bitbake/lib/bb/ui/depexp.py
index 885c31aeac..b7e6f8f1c3 100644
--- a/bitbake/lib/bb/ui/depexp.py
+++ b/bitbake/lib/bb/ui/depexp.py
@@ -163,23 +163,23 @@ class DepExplorer(gtk.Window):
163 self.revdep_treeview.set_current_package(current_package) 163 self.revdep_treeview.set_current_package(current_package)
164 164
165 165
166def parse(depgraph, pkg_model, depends_model): 166 def parse(self, depgraph):
167 for package in depgraph["pn"]: 167 for package in depgraph["pn"]:
168 pkg_model.set(pkg_model.append(), COL_PKG_NAME, package) 168 self.pkg_model.set(self.pkg_model.append(), COL_PKG_NAME, package)
169 169
170 for package in depgraph["depends"]: 170 for package in depgraph["depends"]:
171 for depend in depgraph["depends"][package]: 171 for depend in depgraph["depends"][package]:
172 depends_model.set (depends_model.append(), 172 self.depends_model.set (self.depends_model.append(),
173 COL_DEP_TYPE, TYPE_DEP, 173 COL_DEP_TYPE, TYPE_DEP,
174 COL_DEP_PARENT, package, 174 COL_DEP_PARENT, package,
175 COL_DEP_PACKAGE, depend) 175 COL_DEP_PACKAGE, depend)
176 176
177 for package in depgraph["rdepends-pn"]: 177 for package in depgraph["rdepends-pn"]:
178 for rdepend in depgraph["rdepends-pn"][package]: 178 for rdepend in depgraph["rdepends-pn"][package]:
179 depends_model.set (depends_model.append(), 179 self.depends_model.set (self.depends_model.append(),
180 COL_DEP_TYPE, TYPE_RDEP, 180 COL_DEP_TYPE, TYPE_RDEP,
181 COL_DEP_PARENT, package, 181 COL_DEP_PARENT, package,
182 COL_DEP_PACKAGE, rdepend) 182 COL_DEP_PACKAGE, rdepend)
183 183
184 184
185class gtkthread(threading.Thread): 185class gtkthread(threading.Thread):
@@ -293,7 +293,7 @@ def main(server, eventHandler, params):
293 293
294 if isinstance(event, bb.event.DepTreeGenerated): 294 if isinstance(event, bb.event.DepTreeGenerated):
295 gtk.gdk.threads_enter() 295 gtk.gdk.threads_enter()
296 parse(event._depgraph, dep.pkg_model, dep.depends_model) 296 dep.parse(event._depgraph)
297 gtk.gdk.threads_leave() 297 gtk.gdk.threads_leave()
298 298
299 if isinstance(event, bb.command.CommandCompleted): 299 if isinstance(event, bb.command.CommandCompleted):