From: Richard Purdie Date: Wed, 31 May 2006 20:53:07 +0000 (+0000) Subject: base.bbclass: Fix COMPATIBLE_MACHINE to cope when MACHINE isn't set X-Git-Tag: Release-2010-05/1~9453^2~1548 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=846cfdaeb722991f72663ec2b5e84ce90cf505cd;p=openembedded.git base.bbclass: Fix COMPATIBLE_MACHINE to cope when MACHINE isn't set --- diff --git a/classes/base.bbclass b/classes/base.bbclass index b292355920..4bf37dfd03 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -703,7 +703,7 @@ python __anonymous () { if need_machine: import re this_machine = bb.data.getVar('MACHINE', d, 1) - if not re.match(need_machine, this_machine): + if this_machine and not re.match(need_machine, this_machine): raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine) pn = bb.data.getVar('PN', d, 1)