rendered paste body# patch "classes/base.bbclass"
# from [fcc13f1415d2d612ba2fa44a5322ecb1b9e269f8]
# to [c0e4dc70853d7b6aa334958c55f4789c958c690a]
#
============================================================
--- classes/base.bbclass fcc13f1415d2d612ba2fa44a5322ecb1b9e269f8
+++ classes/base.bbclass c0e4dc70853d7b6aa334958c55f4789c958c690a
@@ -677,20 +677,23 @@ def base_after_parse_two(d):
def base_after_parse_two(d):
import bb
import exceptions
- need_host = bb.data.getVar('COMPATIBLE_HOST', d, 1)
- if need_host:
- import re
- this_host = bb.data.getVar('HOST_SYS', d, 1)
- if not re.match(need_host, this_host):
- raise bb.parse.SkipPackage("incompatible with host %s" % this_host)
- need_machine = bb.data.getVar('COMPATIBLE_MACHINE', d, 1)
- if need_machine:
- import re
- this_machine = bb.data.getVar('MACHINE', d, 1)
- if this_machine and not re.match(need_machine, this_machine):
- raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine)
+ source_mirror_fetch = bb.data.getVar('SOURCE_MIRROR_FETCH', d, 0)
+ if not source_mirror_fetch:
+ need_host = bb.data.getVar('COMPATIBLE_HOST', d, 1)
+ if need_host:
+ import re
+ this_host = bb.data.getVar('HOST_SYS', d, 1)
+ if not re.match(need_host, this_host):
+ raise bb.parse.SkipPackage("incompatible with host %s" % this_host)
+ need_machine = bb.data.getVar('COMPATIBLE_MACHINE', d, 1)
+ if need_machine:
+ import re
+ this_machine = bb.data.getVar('MACHINE', d, 1)
+ 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)
# OBSOLETE in bitbake 1.7.4