diff options
Diffstat (limited to 'meta/classes/copyleft_compliance.bbclass')
-rw-r--r-- | meta/classes/copyleft_compliance.bbclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/classes/copyleft_compliance.bbclass b/meta/classes/copyleft_compliance.bbclass index 907c1836b3..eabf12ce7a 100644 --- a/meta/classes/copyleft_compliance.bbclass +++ b/meta/classes/copyleft_compliance.bbclass | |||
@@ -13,7 +13,7 @@ python do_prepare_copyleft_sources () { | |||
13 | import os.path | 13 | import os.path |
14 | import shutil | 14 | import shutil |
15 | 15 | ||
16 | p = d.getVar('P', True) | 16 | p = d.getVar('P') |
17 | included, reason = copyleft_should_include(d) | 17 | included, reason = copyleft_should_include(d) |
18 | if not included: | 18 | if not included: |
19 | bb.debug(1, 'copyleft: %s is excluded: %s' % (p, reason)) | 19 | bb.debug(1, 'copyleft: %s is excluded: %s' % (p, reason)) |
@@ -21,13 +21,13 @@ python do_prepare_copyleft_sources () { | |||
21 | else: | 21 | else: |
22 | bb.debug(1, 'copyleft: %s is included: %s' % (p, reason)) | 22 | bb.debug(1, 'copyleft: %s is included: %s' % (p, reason)) |
23 | 23 | ||
24 | sources_dir = d.getVar('COPYLEFT_SOURCES_DIR', True) | 24 | sources_dir = d.getVar('COPYLEFT_SOURCES_DIR') |
25 | dl_dir = d.getVar('DL_DIR', True) | 25 | dl_dir = d.getVar('DL_DIR') |
26 | src_uri = d.getVar('SRC_URI', True).split() | 26 | src_uri = d.getVar('SRC_URI').split() |
27 | fetch = bb.fetch2.Fetch(src_uri, d) | 27 | fetch = bb.fetch2.Fetch(src_uri, d) |
28 | ud = fetch.ud | 28 | ud = fetch.ud |
29 | 29 | ||
30 | pf = d.getVar('PF', True) | 30 | pf = d.getVar('PF') |
31 | dest = os.path.join(sources_dir, pf) | 31 | dest = os.path.join(sources_dir, pf) |
32 | shutil.rmtree(dest, ignore_errors=True) | 32 | shutil.rmtree(dest, ignore_errors=True) |
33 | bb.utils.mkdirhier(dest) | 33 | bb.utils.mkdirhier(dest) |