[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Running the same code for 2 subpackages
- From: Erez Zilber <erezz voltaire com>
- To: rpm-list redhat com
- Subject: Running the same code for 2 subpackages
- Date: Wed, 21 Mar 2007 15:22:25 +0200
Hi,
I have a spec file that generates 2 subpackages (using the %package directive). For both subpackages, I want to run the same code in the %post section. Do I need to duplicate my code? Something like:
%post -n first_pkg
...
...
...
%post -n second_pkg
...
...
...
Or can I put a function call anywhere and call it from the %post section? Something like:
%post -n first_pkg
common_func
%post -n second_pkg
common_func
Thanks,
Erez
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]