summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2011-06-20 10:59:58 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-23 12:07:36 +0100
commit3c928be96945095f8cffdbb9bdca0b7ede818a93 (patch)
treee39fa030142e73981c396b519063f61f5c44e6a5 /meta/classes
parentd1557562a52b5728b0803b8b8bac2bfe91f012a3 (diff)
downloadpoky-3c928be96945095f8cffdbb9bdca0b7ede818a93.tar.gz
classes/package_rpm.bbclass: Enhance diagnostic messages
We clearly state now if we are: * Skipping an empty package * Creating a (full) package * Creating an empty package (From OE-Core rev: 3db9d865ef7d65e3712eb7f9a659bb31cb3cb75e) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package_rpm.bbclass7
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