diff options
| -rw-r--r-- | bitbake/lib/toaster/orm/models.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 0aad788c2a..08b1a7ca0d 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
| @@ -1534,10 +1534,13 @@ class CustomImageRecipe(Recipe): | |||
| 1534 | packages_conf += pkg.name+' ' | 1534 | packages_conf += pkg.name+' ' |
| 1535 | 1535 | ||
| 1536 | packages_conf += "\"" | 1536 | packages_conf += "\"" |
| 1537 | 1537 | try: | |
| 1538 | base_recipe = open("%s/%s" % | 1538 | base_recipe = open("%s/%s" % |
| 1539 | (self.base_recipe.layer_version.dirpath, | 1539 | (self.base_recipe.layer_version.dirpath, |
| 1540 | self.base_recipe.file_path), 'r').read() | 1540 | self.base_recipe.file_path), 'r').read() |
| 1541 | except IOError: | ||
| 1542 | # The path may now be the full path if the recipe has been built | ||
| 1543 | base_recipe = open(self.base_recipe.file_path, 'r').read() | ||
| 1541 | 1544 | ||
| 1542 | # Add a special case for when the recipe we have based a custom image | 1545 | # Add a special case for when the recipe we have based a custom image |
| 1543 | # recipe on requires another recipe. | 1546 | # recipe on requires another recipe. |
