* [PATCH 0/1] Fix for progress handling
@ 2016-07-15 8:54 Paul Eggleton
2016-07-15 8:54 ` [PATCH 1/1] knotty: avoid errors when fetching outside of a task Paul Eggleton
0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2016-07-15 8:54 UTC (permalink / raw)
To: bitbake-devel
Fix an issue that shows up on the YP autobuilder during the uninative
fetch process.
The following changes since commit cabe7e2459fcd561bced2d39ba5bd173576153e5:
toaster: tests Add selenium test for layerdetails page (2016-07-08 09:57:06 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib paule/bb-progressfix
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=paule/bb-progressfix
Paul Eggleton (1):
knotty: avoid errors when fetching outside of a task
lib/bb/ui/uihelper.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
--
2.5.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] knotty: avoid errors when fetching outside of a task
2016-07-15 8:54 [PATCH 0/1] Fix for progress handling Paul Eggleton
@ 2016-07-15 8:54 ` Paul Eggleton
0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2016-07-15 8:54 UTC (permalink / raw)
To: bitbake-devel
In a few places we use the fetcher code to fetch files outside of a
task, for example uninative in OE. In that case the pid of the event is
0 and that was causing an error in BBUIHelper.eventHandler(). Check the
pid and do nothing if it's 0.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
lib/bb/ui/uihelper.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lib/bb/ui/uihelper.py b/lib/bb/ui/uihelper.py
index 1915e47..f64fa18 100644
--- a/lib/bb/ui/uihelper.py
+++ b/lib/bb/ui/uihelper.py
@@ -54,9 +54,10 @@ class BBUIHelper:
self.tasknumber_total = event.stats.total
self.needUpdate = True
if isinstance(event, bb.build.TaskProgress):
- self.running_tasks[event.pid]['progress'] = event.progress
- self.running_tasks[event.pid]['rate'] = event.rate
- self.needUpdate = True
+ if event.pid > 0:
+ self.running_tasks[event.pid]['progress'] = event.progress
+ self.running_tasks[event.pid]['rate'] = event.rate
+ self.needUpdate = True
def getTasks(self):
self.needUpdate = False
--
2.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-15 8:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-15 8:54 [PATCH 0/1] Fix for progress handling Paul Eggleton
2016-07-15 8:54 ` [PATCH 1/1] knotty: avoid errors when fetching outside of a task Paul Eggleton
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.