mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 15:32:14 +02:00
base.bbclass: don't add shasum-native dependency if we are building shasum-native
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4444 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -980,12 +980,13 @@ def base_after_parse(d):
|
||||
|
||||
# bb.utils.sha256_file() will fail if hashlib isn't present, so we fallback
|
||||
# on shasum-native. We need to ensure that it is staged before we fetch.
|
||||
try:
|
||||
import hashlib
|
||||
except ImportError:
|
||||
depends = bb.data.getVarFlag('do_fetch', 'depends', d) or ""
|
||||
depends = depends + " shasum-native:do_populate_staging"
|
||||
bb.data.setVarFlag('do_fetch', 'depends', depends, d)
|
||||
if bb.data.getVar('PN', d, True) != "shasum-native":
|
||||
try:
|
||||
import hashlib
|
||||
except ImportError:
|
||||
depends = bb.data.getVarFlag('do_fetch', 'depends', d) or ""
|
||||
depends = depends + " shasum-native:do_populate_staging"
|
||||
bb.data.setVarFlag('do_fetch', 'depends', depends, d)
|
||||
|
||||
mach_arch = bb.data.getVar('MACHINE_ARCH', d, 1)
|
||||
old_arch = bb.data.getVar('PACKAGE_ARCH', d, 1)
|
||||
|
||||
Reference in New Issue
Block a user