diff options
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r-- | bitbake/lib/bb/ui/depexp.py | 32 |
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 | ||
166 | def 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 | ||
185 | class gtkthread(threading.Thread): | 185 | class 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): |