All of lore.kernel.org
 help / color / mirror / Atom feed
* [PULL] fixes in Dependency Explorer
@ 2016-06-07 15:15 Woronicz, Bartosz ( NSN - PL/Wroclaw)
  2016-06-10 11:58 ` Burton, Ross
  0 siblings, 1 reply; 3+ messages in thread
From: Woronicz, Bartosz ( NSN - PL/Wroclaw) @ 2016-06-07 15:15 UTC (permalink / raw)
  To: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 111 bytes --]


-- 
Kind regards,
Bartosz Woronicz
Engineer, Software Configuration (SCM)
Nokia Networks - PL/Wroclaw


[-- Attachment #2: 0001-depexp-remove-the-requirement-for-g-flag.patch --]
[-- Type: text/x-patch, Size: 984 bytes --]

From 11f4a3e137e2eda76c8dce44c053d0db68d6b208 Mon Sep 17 00:00:00 2001
From: Bartosz Wieslaw Woronicz <bartosz.woronicz@nokia.com>
Date: Tue, 7 Jun 2016 17:08:16 +0200
Subject: [PATCH 1/2] depexp: remove the requirement for -g flag

---
 bitbake/lib/bb/ui/depexp.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/bitbake/lib/bb/ui/depexp.py b/bitbake/lib/bb/ui/depexp.py
index 240aafc..6a6bfd5 100644
--- a/bitbake/lib/bb/ui/depexp.py
+++ b/bitbake/lib/bb/ui/depexp.py
@@ -202,9 +202,6 @@ def main(server, eventHandler, params):
             print(cmdline['msg'])
             return 1
         cmdline = cmdline['action']
-        if not cmdline or cmdline[0] != "generateDotGraph":
-            print("This UI requires the -g option")
-            return 1
         ret, error = server.runCommand(["generateDepTreeEvent", cmdline[1], cmdline[2]])
         if error:
             print("Error running command '%s': %s" % (cmdline, error))
-- 
2.5.0


[-- Attachment #3: 0002-depexp-fix-progress-bar.patch --]
[-- Type: text/x-patch, Size: 2074 bytes --]

From 12215390bb16980c6aae5039c7cc6f6eceb1fa4e Mon Sep 17 00:00:00 2001
From: Bartosz Wieslaw Woronicz <bartosz.woronicz@nokia.com>
Date: Tue, 7 Jun 2016 17:09:16 +0200
Subject: [PATCH 2/2] depexp: fix progress bar

---
 bitbake/lib/bb/ui/depexp.py | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/bitbake/lib/bb/ui/depexp.py b/bitbake/lib/bb/ui/depexp.py
index 6a6bfd5..0778f9d 100644
--- a/bitbake/lib/bb/ui/depexp.py
+++ b/bitbake/lib/bb/ui/depexp.py
@@ -264,7 +264,6 @@ def main(server, eventHandler, params):
                 continue
 
             if isinstance(event, bb.event.CacheLoadCompleted):
-                bardialog.hide()
                 continue
 
             if isinstance(event, bb.event.ParseStarted):
@@ -277,6 +276,17 @@ def main(server, eventHandler, params):
 
                 gtk.gdk.threads_leave()
 
+            if isinstance(event, bb.event.TreeDataPreparationStarted):
+                bardialog.set_title("Processing tree data")
+                bardialog.vbox.remove(pbar)
+                bardialog.vbox.pack_start(
+                    gtk.Label(str="Generating dependency graph data... please wait..."))
+                bardialog.show_all()
+                continue
+
+            if isinstance(event, bb.event.TreeDataPreparationProgress):
+                continue
+
             if isinstance(event, bb.event.ParseProgress):
                 x = event.current
                 gtk.gdk.threads_enter()
@@ -286,13 +296,13 @@ def main(server, eventHandler, params):
                 continue
 
             if isinstance(event, bb.event.ParseCompleted):
-                bardialog.hide()
                 continue
 
             if isinstance(event, bb.event.DepTreeGenerated):
                 gtk.gdk.threads_enter()
                 dep.parse(event._depgraph)
                 gtk.gdk.threads_leave()
+                bardialog.hide()
 
             if isinstance(event, bb.command.CommandCompleted):
                 continue
-- 
2.5.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-10 19:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-07 15:15 [PULL] fixes in Dependency Explorer Woronicz, Bartosz ( NSN - PL/Wroclaw)
2016-06-10 11:58 ` Burton, Ross
2016-06-10 16:28   ` Woronicz, Bartosz ( NSN - PL/Wroclaw)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.