[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Running the same code for 2 subpackages



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]