diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2011-06-20 10:59:58 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-23 12:01:55 +0100 |
commit | 3db9d865ef7d65e3712eb7f9a659bb31cb3cb75e (patch) | |
tree | 2abc2ea06cded517a1679e20d9e9a3e42df6a0ad /meta/classes | |
parent | 63f4e1b469046753009d0cef498ef09c87c54912 (diff) | |
download | openembedded-core-3db9d865ef7d65e3712eb7f9a659bb31cb3cb75e.tar.gz openembedded-core-3db9d865ef7d65e3712eb7f9a659bb31cb3cb75e.tar.bz2 openembedded-core-3db9d865ef7d65e3712eb7f9a659bb31cb3cb75e.zip |
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
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
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 () { 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 |