From b0f46c6cd833f8674c675de78c185d878f4d7cc0 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sun, 6 Jan 2008 00:54:46 +0000 Subject: [PATCH] runqueue.py: Don't give a stacktrace for invalid tasks, have a user friendly message (#3431) --- ChangeLog | 1 + lib/bb/runqueue.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0c84120..7f23c7b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -31,6 +31,7 @@ Changes in BitBake 1.8.x: - Improve runqueue code comments - Add task scheduler abstraction and some example schedulers - Improve circular dependency chain debugging code and user feedback + - Don't give a stacktrace for invalid tasks, have a user friendly message (#3431) Changes in Bitbake 1.8.8: - Rewrite svn fetcher to make adding extra operations easier diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 895092d..68ef3a7 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -532,6 +532,9 @@ class RunQueue: if fnid in taskData.failed_fnids: continue + if target[1] not in taskData.tasks_lookup[fnid]: + bb.msg.fatal(bb.msg.domain.RunQueue, "Task %s does not exist for target %s" % (target[1], target[0])) + listid = taskData.tasks_lookup[fnid][target[1]] mark_active(listid, 1) -- 2.7.4