コード例 #1
0
 def get_recipe_file(self, pn):
     """
     Get the file name for the specified recipe/target. Raises
     bb.providers.NoProvider if there is no match or the recipe was
     skipped.
     """
     best = self.find_best_provider(pn)
     if not best or (len(best) > 3 and not best[3]):
         skiplist = self.get_skipped_recipes()
         taskdata = bb.taskdata.TaskData(None, skiplist=skiplist)
         skipreasons = taskdata.get_reasons(pn)
         if skipreasons:
             raise bb.providers.NoProvider('%s is unavailable:\n  %s' % (pn, '  \n'.join(skipreasons)))
         else:
             raise bb.providers.NoProvider('Unable to find any recipe file matching "%s"' % pn)
     return best[3]
コード例 #2
0
ファイル: tinfoil.py プロジェクト: 01org/luv-yocto
 def get_recipe_file(self, pn):
     """
     Get the file name for the specified recipe/target. Raises
     bb.providers.NoProvider if there is no match or the recipe was
     skipped.
     """
     best = self.find_best_provider(pn)
     if not best or (len(best) > 3 and not best[3]):
         skiplist = self.get_skipped_recipes()
         taskdata = bb.taskdata.TaskData(None, skiplist=skiplist)
         skipreasons = taskdata.get_reasons(pn)
         if skipreasons:
             raise bb.providers.NoProvider('%s is unavailable:\n  %s' % (pn, '  \n'.join(skipreasons)))
         else:
             raise bb.providers.NoProvider('Unable to find any recipe file matching "%s"' % pn)
     return best[3]
コード例 #3
0
ファイル: tinfoil.py プロジェクト: kergoth/bitbake
 def get_recipe_file(self, pn):
     """
     Get the file name for the specified recipe/target. Raises
     bb.providers.NoProvider if there is no match or the recipe was
     skipped.
     """
     best = self.find_best_provider(pn)
     if not best:
         skiplist = self.get_skipped_recipes()
         taskdata = bb.taskdata.TaskData(None, skiplist=skiplist)
         skipreasons = taskdata.get_reasons(pn)
         if skipreasons:
             raise bb.providers.NoProvider(skipreasons)
         else:
             raise bb.providers.NoProvider('Unable to find any recipe file matching %s' % pn)
     return best[3]
コード例 #4
0
ファイル: tinfoil.py プロジェクト: darander/bitbake
 def get_recipe_file(self, pn):
     """
     Get the file name for the specified recipe/target. Raises
     bb.providers.NoProvider if there is no match or the recipe was
     skipped.
     """
     best = self.find_best_provider(pn)
     if not best:
         skiplist = self.get_skipped_recipes()
         taskdata = bb.taskdata.TaskData(None, skiplist=skiplist)
         skipreasons = taskdata.get_reasons(pn)
         if skipreasons:
             raise bb.providers.NoProvider(skipreasons)
         else:
             raise bb.providers.NoProvider(
                 'Unable to find any recipe file matching %s' % pn)
     return best[3]
コード例 #5
0
ファイル: recipeutils.py プロジェクト: mythi/ostro-os
def get_unavailable_reasons(cooker, pn):
    """If a recipe could not be found, find out why if possible"""
    import bb.taskdata
    taskdata = bb.taskdata.TaskData(None, skiplist=cooker.skiplist)
    return taskdata.get_reasons(pn)
コード例 #6
0
def get_unavailable_reasons(cooker, pn):
    """If a recipe could not be found, find out why if possible"""
    import bb.taskdata
    taskdata = bb.taskdata.TaskData(None, skiplist=cooker.skiplist)
    return taskdata.get_reasons(pn)