Skip to contentSkip to conversation

base.bbclass: fix parse error on recipes with '++' in their name

PATCH New Paul Eggleton 1 participant 1 message Jan 18, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/classes/base.bbclass |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
meta/classes/base.bbclass +2 -1
index f1ffb45..583f9b7 100644
@@ -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")
 
Signature · 1 line
1.7.3.1