diff options
author | Kang Kai <kai.kang@windriver.com> | 2013-03-01 18:02:13 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-01 13:01:21 +0000 |
commit | 34f3926f1787f9a2efa2257a2aaea6ee92adf8a3 (patch) | |
tree | dd5b0157a26d7401990cac9a4a432cb9d91faad4 /meta/classes | |
parent | 9b2a008c25a7a3152ae2d8c64ae8de2534471d47 (diff) | |
download | openembedded-core-34f3926f1787f9a2efa2257a2aaea6ee92adf8a3.tar.gz openembedded-core-34f3926f1787f9a2efa2257a2aaea6ee92adf8a3.tar.bz2 openembedded-core-34f3926f1787f9a2efa2257a2aaea6ee92adf8a3.zip |
package_rpm.bbclass: add more description for pre/post scriptlets
When write rpm spec file, one description line
"# pkgname - script_type"
is added to pre/post scriptlets for base package but no such line
writted for subpackage.
Add similiar line to subpackage to facilitate handling the pre/post
scriptlets.
Signed-off-by: Kang Kai <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 225fc70f2f..c0ba54dd9c 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass @@ -777,19 +777,23 @@ python write_specfile () { # Now process scriptlets if splitrpreinst: spec_scriptlets_bottom.append('%%pre -n %s' % splitname) + spec_scriptlets_bottom.append('# %s - preinst' % splitname) spec_scriptlets_bottom.append(splitrpreinst) spec_scriptlets_bottom.append('') if splitrpostinst: spec_scriptlets_bottom.append('%%post -n %s' % splitname) + spec_scriptlets_bottom.append('# %s - postinst' % splitname) spec_scriptlets_bottom.append(splitrpostinst) spec_scriptlets_bottom.append('') if splitrprerm: spec_scriptlets_bottom.append('%%preun -n %s' % splitname) + spec_scriptlets_bottom.append('# %s - prerm' % splitname) scriptvar = wrap_uninstall(splitrprerm) spec_scriptlets_bottom.append(scriptvar) spec_scriptlets_bottom.append('') if splitrpostrm: spec_scriptlets_bottom.append('%%postun -n %s' % splitname) + spec_scriptlets_bottom.append('# %s - postrm' % splitname) scriptvar = wrap_uninstall(splitrpostrm) spec_scriptlets_bottom.append(scriptvar) spec_scriptlets_bottom.append('') |