abseil-cpp: Use SkipRecipe exception

SkipPackage exception is deprecated.

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Jacob Kroon
2020-08-04 10:51:34 +02:00
committed by Khem Raj
parent 2c984487b3
commit 184e75363c
@@ -37,22 +37,22 @@ python () {
if arch == "aarch64": if arch == "aarch64":
tunes = d.getVar("TUNE_FEATURES") tunes = d.getVar("TUNE_FEATURES")
if not tunes: if not tunes:
raise bb.parse.SkipPackage("%s-%s Needs support for crypto on armv8" % (pkgn, pkgv)) raise bb.parse.SkipRecipe("%s-%s Needs support for crypto on armv8" % (pkgn, pkgv))
return return
pkgn = d.getVar("PN") pkgn = d.getVar("PN")
pkgv = d.getVar("PV") pkgv = d.getVar("PV")
if "crypto" not in tunes: if "crypto" not in tunes:
raise bb.parse.SkipPackage("%s-%s Needs support for crypto on armv8" % (pkgn, pkgv)) raise bb.parse.SkipRecipe("%s-%s Needs support for crypto on armv8" % (pkgn, pkgv))
if arch == "x86_64": if arch == "x86_64":
tunes = d.getVar("TUNE_FEATURES") tunes = d.getVar("TUNE_FEATURES")
if not tunes: if not tunes:
raise bb.parse.SkipPackage("%s-%s Needs support for corei7 on x86_64" % (pkgn, pkgv)) raise bb.parse.SkipRecipe("%s-%s Needs support for corei7 on x86_64" % (pkgn, pkgv))
return return
pkgn = d.getVar("PN") pkgn = d.getVar("PN")
pkgv = d.getVar("PV") pkgv = d.getVar("PV")
if "corei7" not in tunes: if "corei7" not in tunes:
raise bb.parse.SkipPackage("%s-%s Needs support for corei7 on x86_64" % (pkgn, pkgv)) raise bb.parse.SkipRecipe("%s-%s Needs support for corei7 on x86_64" % (pkgn, pkgv))
} }