mirror of
https://git.yoctoproject.org/poky
synced 2026-09-15 06:49:33 +02:00
base.bbclass: Add automatic osc-native dependencies for osc:// recipes
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5425 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -1000,6 +1000,13 @@ def base_after_parse(d):
|
|||||||
depends = depends + " git-native:do_populate_staging"
|
depends = depends + " git-native:do_populate_staging"
|
||||||
bb.data.setVarFlag('do_fetch', 'depends', depends, d)
|
bb.data.setVarFlag('do_fetch', 'depends', depends, d)
|
||||||
|
|
||||||
|
# OSC packages should DEPEND on osc-native
|
||||||
|
srcuri = bb.data.getVar('SRC_URI', d, 1)
|
||||||
|
if "osc://" in srcuri:
|
||||||
|
depends = bb.data.getVarFlag('do_fetch', 'depends', d) or ""
|
||||||
|
depends = depends + " osc-native:do_populate_staging"
|
||||||
|
bb.data.setVarFlag('do_fetch', 'depends', depends, d)
|
||||||
|
|
||||||
# bb.utils.sha256_file() will fail if hashlib isn't present, so we fallback
|
# 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.
|
# on shasum-native. We need to ensure that it is staged before we fetch.
|
||||||
if bb.data.getVar('PN', d, True) != "shasum-native":
|
if bb.data.getVar('PN', d, True) != "shasum-native":
|
||||||
|
|||||||
Reference in New Issue
Block a user