summaryrefslogtreecommitdiffstats
path: root/meta/classes/license.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/license.bbclass
parent6d9e3a19384cbd737fdac729c6c0de5b06f8ec12 (diff)
downloadast2050-yocto-poky-554c892ccf16ca564e7be94f84eaa73667170e15.zip
ast2050-yocto-poky-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/license.bbclass')
-rw-r--r--meta/classes/license.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 2ca47cc..621c1b2 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -129,9 +129,9 @@ def add_package_and_files(d):
d.setVar('RRECOMMENDS_' + pn, "%s" % (pn_lic))
def copy_license_files(lic_files_paths, destdir):
- bb.mkdirhier(destdir)
+ bb.utils.mkdirhier(destdir)
for (basename, path) in lic_files_paths:
- ret = bb.copyfile(path, os.path.join(destdir, basename))
+ ret = bb.utils.copyfile(path, os.path.join(destdir, basename))
# If the copy didn't occur, something horrible went wrong and we fail out
if not ret:
bb.warn("%s could not be copied for some reason. It may not exist. WARN for now." % path)
@@ -188,7 +188,7 @@ def find_license_files(d):
def find_license(license_type):
try:
- bb.mkdirhier(gen_lic_dest)
+ bb.utils.mkdirhier(gen_lic_dest)
except:
pass
spdx_generic = None
@@ -227,7 +227,7 @@ def find_license_files(d):
return lic_files_paths
for url in lic_files.split():
- (type, host, path, user, pswd, parm) = bb.decodeurl(url)
+ (type, host, path, user, pswd, parm) = bb.fetch.decodeurl(url)
# We want the license filename and path
srclicfile = os.path.join(srcdir, path)
lic_files_paths.append((os.path.basename(path), srclicfile))
OpenPOWER on IntegriCloud