summaryrefslogtreecommitdiffstats
path: root/meta/classes/copyleft_compliance.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-01 08:52:40 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-01 15:51:42 +0100
commit554c892ccf16ca564e7be94f84eaa73667170e15 (patch)
tree01b74616570ebd473abf6bb287cdfcfbd797d41b /meta/classes/copyleft_compliance.bbclass
parent6d9e3a19384cbd737fdac729c6c0de5b06f8ec12 (diff)
downloadpoky-554c892ccf16ca564e7be94f84eaa73667170e15.tar.gz
meta: Don't use deprecated bitbake API
These have been deprecated for a long time, convert the remaining references to the correct modules and prepare for removal of the compatibility support from bitbake. (From OE-Core rev: 6a39835af2b2b3c7797fe05479341d71a3f3aaf6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/copyleft_compliance.bbclass')
-rw-r--r--meta/classes/copyleft_compliance.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/copyleft_compliance.bbclass b/meta/classes/copyleft_compliance.bbclass
index 6b30b876f8..32aa7577f0 100644
--- a/meta/classes/copyleft_compliance.bbclass
+++ b/meta/classes/copyleft_compliance.bbclass
@@ -33,7 +33,7 @@ python do_prepare_copyleft_sources () {
33 pf = d.getVar('PF', True) 33 pf = d.getVar('PF', True)
34 dest = os.path.join(sources_dir, pf) 34 dest = os.path.join(sources_dir, pf)
35 shutil.rmtree(dest, ignore_errors=True) 35 shutil.rmtree(dest, ignore_errors=True)
36 bb.mkdirhier(dest) 36 bb.utils.mkdirhier(dest)
37 37
38 for u in ud.values(): 38 for u in ud.values():
39 local = os.path.normpath(fetch.localpath(u.url)) 39 local = os.path.normpath(fetch.localpath(u.url))
@@ -51,7 +51,7 @@ python do_prepare_copyleft_sources () {
51 51
52 patches = src_patches(d) 52 patches = src_patches(d)
53 for patch in patches: 53 for patch in patches:
54 _, _, local, _, _, parm = bb.decodeurl(patch) 54 _, _, local, _, _, parm = bb.fetch.decodeurl(patch)
55 patchdir = parm.get('patchdir') 55 patchdir = parm.get('patchdir')
56 if patchdir: 56 if patchdir:
57 series = os.path.join(dest, 'series.subdir.%s' % patchdir.replace('/', '_')) 57 series = os.path.join(dest, 'series.subdir.%s' % patchdir.replace('/', '_'))