All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] bitbake: runqueue: add warning in invalidate task
@ 2013-07-29  9:18 Petter Mabäcker
  2013-07-29  9:19 ` [PATCH 1/1] " Petter Mabäcker
  0 siblings, 1 reply; 3+ messages in thread
From: Petter Mabäcker @ 2013-07-29  9:18 UTC (permalink / raw)
  To: bitbake-devel

The following changes since commit 67864ca79da08df752487a3a4e1a975546da123d:

  systemd: Remove systemd_unitdir if systemd is not in distro features (2013-07-24 11:35:39 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib petmab/bug/4877
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=petmab/bug/4877

Petter Mabäcker (1):
  bitbake: runqueue: add warning in invalidate task

 bitbake/lib/bb/runqueue.py |    3 +++
 1 file changed, 3 insertions(+)

-- 
1.7.9.5



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

* [PATCH 1/1] bitbake: runqueue: add warning in invalidate task
  2013-07-29  9:18 [PATCH 0/1] bitbake: runqueue: add warning in invalidate task Petter Mabäcker
@ 2013-07-29  9:19 ` Petter Mabäcker
  2013-07-29 15:02   ` Paul Eggleton
  0 siblings, 1 reply; 3+ messages in thread
From: Petter Mabäcker @ 2013-07-29  9:19 UTC (permalink / raw)
  To: bitbake-devel

Add a warning if 'bitbake -C' is executed with a task that does not
exist.

Fixes [YOCTO #4877]

Signed-off-by: Petter Mabäcker <petter@technux.se>
---
 bitbake/lib/bb/runqueue.py |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index fce08ee..539e9af 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -720,6 +720,9 @@ class RunQueueData:
 
         def invalidate_task(fn, taskname, error_nostamp):
             taskdep = self.dataCache.task_deps[fn]
+            fnid = self.taskData.getfn_id(fn)
+            if taskname not in taskData.tasks_lookup[fnid]:
+                logger.warn("Task %s does not exist, invalidate this task will have no effect" % taskname)
             if 'nostamp' in taskdep and taskname in taskdep['nostamp']:
                 if error_nostamp:
                     bb.fatal("Task %s is marked nostamp, cannot invalidate this task" % taskname)
-- 
1.7.9.5



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

* Re: [PATCH 1/1] bitbake: runqueue: add warning in invalidate task
  2013-07-29  9:19 ` [PATCH 1/1] " Petter Mabäcker
@ 2013-07-29 15:02   ` Paul Eggleton
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Eggleton @ 2013-07-29 15:02 UTC (permalink / raw)
  To: Petter Mabäcker; +Cc: bitbake-devel

Hi Petter,

On Monday 29 July 2013 11:19:31 Petter Mabäcker wrote:
> Add a warning if 'bitbake -C' is executed with a task that does not
> exist.
> 
> Fixes [YOCTO #4877]
> 
> Signed-off-by: Petter Mabäcker <petter@technux.se>
> ---
>  bitbake/lib/bb/runqueue.py |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
> index fce08ee..539e9af 100644
> --- a/bitbake/lib/bb/runqueue.py
> +++ b/bitbake/lib/bb/runqueue.py
> @@ -720,6 +720,9 @@ class RunQueueData:
> 
>          def invalidate_task(fn, taskname, error_nostamp):
>              taskdep = self.dataCache.task_deps[fn]
> +            fnid = self.taskData.getfn_id(fn)
> +            if taskname not in taskData.tasks_lookup[fnid]:
> +                logger.warn("Task %s does not exist, invalidate this task
> will have no effect" % taskname) if 'nostamp' in taskdep and taskname in
> taskdep['nostamp']: if error_nostamp:
>                      bb.fatal("Task %s is marked nostamp, cannot invalidate
> this task" % taskname)

This has now been merged with a slight tweak to the message and shortlog.

Thanks,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

end of thread, other threads:[~2013-07-29 15:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-29  9:18 [PATCH 0/1] bitbake: runqueue: add warning in invalidate task Petter Mabäcker
2013-07-29  9:19 ` [PATCH 1/1] " Petter Mabäcker
2013-07-29 15:02   ` 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.