Exemplo n.º 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]
Exemplo n.º 2
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]
Exemplo n.º 3
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:
         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]
Exemplo n.º 4
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:
         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]
Exemplo n.º 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)
Exemplo n.º 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)