From 4584e094f5bbbd212d57fdfeb2765414b3c843d7 Mon Sep 17 00:00:00 2001 From: Jos de Kloe Date: Aug 12 2025 07:27:05 +0000 Subject: Update guidelines/modules/ROOT/pages/Directory_Replacement.adoc Add a short note on the need to use the -n option for %pretrans in case of using a Lua script on a sub-package. --- diff --git a/guidelines/modules/ROOT/pages/Directory_Replacement.adoc b/guidelines/modules/ROOT/pages/Directory_Replacement.adoc index dc309fe..5081dab 100644 --- a/guidelines/modules/ROOT/pages/Directory_Replacement.adoc +++ b/guidelines/modules/ROOT/pages/Directory_Replacement.adoc @@ -106,3 +106,14 @@ if st and st.type == "link" then os.remove(path) end .... + +=== Additional switch needed when working with sub-packages + +Please note that in case you generate several sub-packages from +a spec file it is needed to specify for which sub-package the Lua +script should be executed. +In this case the -n option needs to be provided to the %pretrans +section in the following way: +.... +%pretrans -n -p +....