summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKang Kai <kai.kang@windriver.com>2013-03-01 18:02:13 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-01 13:03:29 +0000
commit8506e4f454231a58985e05a11d47dd4556e90bc3 (patch)
tree3163c50a85916a4f5b7e699ab9f5a4b197c9084a /meta
parentb7cb3809309d2093990f8b6f930e96c7db827cee (diff)
downloadpoky-8506e4f454231a58985e05a11d47dd4556e90bc3.tar.gz
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. (From OE-Core rev: 34f3926f1787f9a2efa2257a2aaea6ee92adf8a3) Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/package_rpm.bbclass4
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 () {
777 # Now process scriptlets 777 # Now process scriptlets
778 if splitrpreinst: 778 if splitrpreinst:
779 spec_scriptlets_bottom.append('%%pre -n %s' % splitname) 779 spec_scriptlets_bottom.append('%%pre -n %s' % splitname)
780 spec_scriptlets_bottom.append('# %s - preinst' % splitname)
780 spec_scriptlets_bottom.append(splitrpreinst) 781 spec_scriptlets_bottom.append(splitrpreinst)
781 spec_scriptlets_bottom.append('') 782 spec_scriptlets_bottom.append('')
782 if splitrpostinst: 783 if splitrpostinst:
783 spec_scriptlets_bottom.append('%%post -n %s' % splitname) 784 spec_scriptlets_bottom.append('%%post -n %s' % splitname)
785 spec_scriptlets_bottom.append('# %s - postinst' % splitname)
784 spec_scriptlets_bottom.append(splitrpostinst) 786 spec_scriptlets_bottom.append(splitrpostinst)
785 spec_scriptlets_bottom.append('') 787 spec_scriptlets_bottom.append('')
786 if splitrprerm: 788 if splitrprerm:
787 spec_scriptlets_bottom.append('%%preun -n %s' % splitname) 789 spec_scriptlets_bottom.append('%%preun -n %s' % splitname)
790 spec_scriptlets_bottom.append('# %s - prerm' % splitname)
788 scriptvar = wrap_uninstall(splitrprerm) 791 scriptvar = wrap_uninstall(splitrprerm)
789 spec_scriptlets_bottom.append(scriptvar) 792 spec_scriptlets_bottom.append(scriptvar)
790 spec_scriptlets_bottom.append('') 793 spec_scriptlets_bottom.append('')
791 if splitrpostrm: 794 if splitrpostrm:
792 spec_scriptlets_bottom.append('%%postun -n %s' % splitname) 795 spec_scriptlets_bottom.append('%%postun -n %s' % splitname)
796 spec_scriptlets_bottom.append('# %s - postrm' % splitname)
793 scriptvar = wrap_uninstall(splitrpostrm) 797 scriptvar = wrap_uninstall(splitrpostrm)
794 spec_scriptlets_bottom.append(scriptvar) 798 spec_scriptlets_bottom.append(scriptvar)
795 spec_scriptlets_bottom.append('') 799 spec_scriptlets_bottom.append('')