diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index d8e86c5cd6..9a854f3834 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -486,7 +486,10 @@ python write_specfile () { | |||
486 | spec_files_top.append('%files') | 486 | spec_files_top.append('%files') |
487 | spec_files_top.append('%defattr(-,-,-,-)') | 487 | spec_files_top.append('%defattr(-,-,-,-)') |
488 | if file_list: | 488 | if file_list: |
489 | bb.note("Creating RPM package for %s" % splitname) | ||
489 | spec_files_top.extend(file_list) | 490 | spec_files_top.extend(file_list) |
491 | else: | ||
492 | bb.note("Creating EMPTY RPM Package for %s" % splitname) | ||
490 | spec_files_top.append('') | 493 | spec_files_top.append('') |
491 | 494 | ||
492 | bb.utils.unlockfile(lf) | 495 | bb.utils.unlockfile(lf) |
@@ -569,11 +572,13 @@ python write_specfile () { | |||
569 | if not file_list and bb.data.getVar('ALLOW_EMPTY', localdata) != "1": | 572 | if not file_list and bb.data.getVar('ALLOW_EMPTY', localdata) != "1": |
570 | bb.note("Not creating empty RPM package for %s" % splitname) | 573 | bb.note("Not creating empty RPM package for %s" % splitname) |
571 | else: | 574 | else: |
572 | bb.note("Creating RPM package for %s" % splitname) | ||
573 | spec_files_bottom.append('%%files -n %s' % splitname) | 575 | spec_files_bottom.append('%%files -n %s' % splitname) |
574 | spec_files_bottom.append('%defattr(-,-,-,-)') | 576 | spec_files_bottom.append('%defattr(-,-,-,-)') |
575 | if file_list: | 577 | if file_list: |
578 | bb.note("Creating RPM package for %s" % splitname) | ||
576 | spec_files_bottom.extend(file_list) | 579 | spec_files_bottom.extend(file_list) |
580 | else: | ||
581 | bb.note("Creating EMPTY RPM Package for %s" % splitname) | ||
577 | spec_files_bottom.append('') | 582 | spec_files_bottom.append('') |
578 | 583 | ||
579 | del localdata | 584 | del localdata |