diff options
Diffstat (limited to 'meta/classes/copyleft_compliance.bbclass')
-rw-r--r-- | meta/classes/copyleft_compliance.bbclass | 4 |
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('/', '_')) |