From ed2a4ffadd522a67bbba7199a3c05cd74d55205d Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Sep 09 2025 15:56:23 +0000 Subject: Clarify difference between run-time scriptlets and build-time Build scripts The restriction mentioned is likely tied to the build scripts, not the scriptlets. In that case it is a duplicate with the text after it, so I removed it entirely. --- diff --git a/guidelines/modules/ROOT/pages/index.adoc b/guidelines/modules/ROOT/pages/index.adoc index 73cbc80..ed3f58e 100644 --- a/guidelines/modules/ROOT/pages/index.adoc +++ b/guidelines/modules/ROOT/pages/index.adoc @@ -2406,13 +2406,12 @@ as this will expose most of these errors. == Scriptlets -Great care should be taken when using scriptlets in Fedora packages. -If scriptlets are used, those scriptlets must be sane. -Some common scriptlets are documented xref:Scriptlets.adoc[here]. +Packages may contain pieces of run-time code that are triggered during DNF transactions. +These are called sriptlets and are documented xref:Scriptlets.adoc[here]. -=== Scriplets are only allowed to write in certain directories +== Build Scripts -Build scripts of packages +Build scripts of the packages (%prep, %build, %install, %check and %clean) may only alter files (create, modify, delete) under %\{buildroot}, %\{_builddir}