From: Paul Eggleton Date: Tue, 18 Jan 2011 15:51:32 +0000 (+0000) Subject: base.bbclass: fix parse error on recipes with '++' in their name X-Git-Tag: 2011-1~2825 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=297f2a7afc6550f5519e54dd3101f404372f6646;p=openembedded-core.git base.bbclass: fix parse error on recipes with '++' in their name Fixes "multiple repeat" or "nothing to repeat" errors when parsing recipes with '++' in the file name. Signed-off-by: Paul Eggleton Signed-off-by: Saul Wold --- diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index f1ffb4540a..583f9b775f 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -422,7 +422,8 @@ python () { commercial_license = bb.data.getVar('COMMERCIAL_LICENSE', d, 1) import re - if commercial_license and re.search(pn, commercial_license): + pnr = pn.replace('+', "\+") + if commercial_license and re.search(pnr, commercial_license): bb.debug(1, "Skipping %s because it's commercially licensed" % pn) raise bb.parse.SkipPackage("because it requires commercial license to ship product")