It's not uncommon to "open up" several XSAs in a row, and to begin
work on subsequent ones before the backports to previous ones are
done.
If when making the baseline for a given Xen version for an XSA, one of
the prerequisete XSAs doesn't have a recipe for that Xen version, just
skip making the baseline for that version.
Signed-off-by: George Dunlap <george.dunlap@citrix.com>
// Check to see if there are any patches to apply
subr := xsa.GetRecipe(r.XenVersion)
+ if subr == nil {
+ fmt.Printf("WARNING: No recipe for xsa %d version %v, skipping\n",
+ xsanum, r.XenVersion)
+ continue
+ }
+
subtr, prs := subr.Recipes[tree]
if !prs || !subtr.HasPatches() {