diff options
-rw-r--r-- | meta/classes/archiver.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass index 6749d61678..3d75d8eba2 100644 --- a/meta/classes/archiver.bbclass +++ b/meta/classes/archiver.bbclass | |||
@@ -63,7 +63,10 @@ def copyleft_should_include(d): | |||
63 | bb.fatal('%s: %s' % (d.getVar('PF', True), exc)) | 63 | bb.fatal('%s: %s' % (d.getVar('PF', True), exc)) |
64 | else: | 64 | else: |
65 | if is_included: | 65 | if is_included: |
66 | return True, 'recipe has included licenses: %s' % ', '.join(reason) | 66 | if reason: |
67 | return True, 'recipe has included licenses: %s' % ', '.join(reason) | ||
68 | else: | ||
69 | return False, 'recipe does not include a copyleft license' | ||
67 | else: | 70 | else: |
68 | return False, 'recipe has excluded licenses: %s' % ', '.join(reason) | 71 | return False, 'recipe has excluded licenses: %s' % ', '.join(reason) |
69 | 72 | ||