예제 #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
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)