From: "Woronicz, Bartosz ( NSN - PL/Wroclaw)" <bartosz.woronicz@nokia.com>
To: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: [PULL] fixes in Dependency Explorer
Date: Tue, 7 Jun 2016 17:15:53 +0200 [thread overview]
Message-ID: <5756E529.3000500@nokia.com> (raw)
[-- 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
next reply other threads:[~2016-06-07 18:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-07 15:15 Woronicz, Bartosz ( NSN - PL/Wroclaw) [this message]
2016-06-10 11:58 ` [PULL] fixes in Dependency Explorer Burton, Ross
2016-06-10 16:28 ` Woronicz, Bartosz ( NSN - PL/Wroclaw)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5756E529.3000500@nokia.com \
--to=bartosz.woronicz@nokia.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.