def setManifestText(self, text):
     if text is None:
         if self.manifest is not None:
             IStore(self.manifest).remove(self.manifest)
     elif self.manifest is None:
         SourcePackageRecipeData.createManifestFromText(text, self)
     else:
         from bzrlib.plugins.builder.recipe import RecipeParser
         self.manifest.setRecipe(RecipeParser(text).parse())
Ejemplo n.º 2
0
 def setManifestText(self, text):
     if text is None:
         if self.manifest is not None:
             IStore(self.manifest).remove(self.manifest)
     elif self.manifest is None:
         SourcePackageRecipeData.createManifestFromText(text, self)
     else:
         from bzrlib.plugins.builder.recipe import RecipeParser
         self.manifest.setRecipe(RecipeParser(text).parse())