Running the same code for 2 subpackages

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

 



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

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux