All of lore.kernel.org
 help / color / mirror / Atom feed
* [review-request][PATCH] bitbake: toaster: do not stop data import on bad data
@ 2015-07-14 21:06 Brian Avery
  2015-07-15 10:52 ` Michael Wood
  2015-07-15 14:13 ` Damian, Alexandru
  0 siblings, 2 replies; 6+ messages in thread
From: Brian Avery @ 2015-07-14 21:06 UTC (permalink / raw)
  To: toaster

Continue storing layers in the database even if we hit
a bad layer.

[YOCTO #7955]
---
 bitbake/lib/toaster/orm/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 4ea75f2..c218198 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -891,7 +891,7 @@ class LayerIndexLayerSource(LayerSource):
                 dependlist[lv].append(Layer_Version.objects.get(layer_source = self, layer__up_id = ldi['dependency'], up_branch = lv.up_branch))
             except Layer_Version.DoesNotExist as e:
                 print "Cannot find layer version ", self, ldi['dependency'], lv.up_branch
-                raise e
+                pass
 
         for lv in dependlist:
             LayerVersionDependency.objects.filter(layer_version = lv).delete()
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [review-request][PATCH] bitbake: toaster: do not stop data import on bad data
@ 2015-07-14 21:03 Brian Avery
  0 siblings, 0 replies; 6+ messages in thread
From: Brian Avery @ 2015-07-14 21:03 UTC (permalink / raw)
  To: toaster

Continue storing layers in the database even if we hit
a bad layer.

[YOCTO #7955]
---
 bitbake/lib/toaster/orm/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 4ea75f2..c218198 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -891,7 +891,7 @@ class LayerIndexLayerSource(LayerSource):
                 dependlist[lv].append(Layer_Version.objects.get(layer_source = self, layer__up_id = ldi['dependency'], up_branch = lv.up_branch))
             except Layer_Version.DoesNotExist as e:
                 print "Cannot find layer version ", self, ldi['dependency'], lv.up_branch
-                raise e
+                pass
 
         for lv in dependlist:
             LayerVersionDependency.objects.filter(layer_version = lv).delete()
-- 
1.9.1



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

end of thread, other threads:[~2015-07-15 16:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-14 21:06 [review-request][PATCH] bitbake: toaster: do not stop data import on bad data Brian Avery
2015-07-15 10:52 ` Michael Wood
2015-07-15 14:13 ` Damian, Alexandru
2015-07-15 16:43   ` Damian, Alexandru
2015-07-15 16:44     ` Damian, Alexandru
  -- strict thread matches above, loose matches on Subject: below --
2015-07-14 21:03 Brian Avery

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.