Patchwork [11/40] classes/package_rpm.bbclass: Enhance diagnostic messages

login
register
mail settings
Submitter Mark Hatle
Date June 22, 2011, 5:36 p.m.
Message ID <b18d9b4122913f6c5e039f2d90e8575fe68122a3.1308763995.git.mark.hatle@windriver.com>
Download mbox | patch
Permalink /patch/6275/
State New, archived
Headers show

Comments

Mark Hatle - June 22, 2011, 5:36 p.m.
We clearly state now if we are:
  * Skipping an empty package
  * Creating a (full) package
  * Creating an empty package

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 meta/classes/package_rpm.bbclass |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index d8e86c5..9a854f3 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -486,7 +486,10 @@  python write_specfile () {
 				spec_files_top.append('%files')
 				spec_files_top.append('%defattr(-,-,-,-)')
 				if file_list:
+					bb.note("Creating RPM package for %s" % splitname)
 					spec_files_top.extend(file_list)
+				else:
+					bb.note("Creating EMPTY RPM Package for %s" % splitname)
 				spec_files_top.append('')
 
 			bb.utils.unlockfile(lf)
@@ -569,11 +572,13 @@  python write_specfile () {
 		if not file_list and bb.data.getVar('ALLOW_EMPTY', localdata) != "1":
 			bb.note("Not creating empty RPM package for %s" % splitname)
 		else:
-			bb.note("Creating RPM package for %s" % splitname)
 			spec_files_bottom.append('%%files -n %s' % splitname)
 			spec_files_bottom.append('%defattr(-,-,-,-)')
 			if file_list:
+				bb.note("Creating RPM package for %s" % splitname)
 				spec_files_bottom.extend(file_list)
+			else:
+				bb.note("Creating EMPTY RPM Package for %s" % splitname)
 			spec_files_bottom.append('')
 
 		del localdata