diff options
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index bb6b5decff..caf069721a 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -1647,14 +1647,14 @@ class CustomImageRecipe(Recipe): | |||
1647 | """ | 1647 | """ |
1648 | # Check if we're aldready up-to-date or not | 1648 | # Check if we're aldready up-to-date or not |
1649 | target = self.get_last_successful_built_target() | 1649 | target = self.get_last_successful_built_target() |
1650 | if target == None: | 1650 | if target is None: |
1651 | # So we've never actually built this Custom recipe but what about | 1651 | # So we've never actually built this Custom recipe but what about |
1652 | # the recipe it's based on? | 1652 | # the recipe it's based on? |
1653 | target = \ | 1653 | target = \ |
1654 | Target.objects.filter(Q(build__outcome=Build.SUCCEEDED) & | 1654 | Target.objects.filter(Q(build__outcome=Build.SUCCEEDED) & |
1655 | Q(build__project=self.project) & | 1655 | Q(build__project=self.project) & |
1656 | Q(target=self.base_recipe.name)).last() | 1656 | Q(target=self.base_recipe.name)).last() |
1657 | if target == None: | 1657 | if target is None: |
1658 | return | 1658 | return |
1659 | 1659 | ||
1660 | if target.build.completed_on == self.last_updated: | 1660 | if target.build.completed_on == self.last_updated: |