summaryrefslogtreecommitdiff
path: root/tests/rpmgeneral.at
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-03-11 12:06:49 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-03-11 12:06:49 +0200
commitd370816ba508a33cc39252cbb9ba85dcd99504d5 (patch)
tree1eb5a3af5091ba2bb24a26709f5440f9b4f6b7a8 /tests/rpmgeneral.at
parentd0a959a571d7b34ea2263619b8cfba623a425c44 (diff)
downloadrpm-d370816ba508a33cc39252cbb9ba85dcd99504d5.tar.gz
Support run-time macro and queryformat expansion on scriptlets
- Add per-scriptlet type flag tags to control special behavior. - Add rpmlib dependency on scriptlet expansion - if a package relies on scriptlet expansion it cannot be correctly installed with a version of rpm that doesn't support it. - Expansion is always an opt-in behavior, enabled with -q and/or -e argument in spec. We can't just blindly expand even macros as there's no telling %{} constructs might mean in whatever language is used for the script. - Queryformat expansion requires great care with strange and ugly escapes when writing scriptlets, but OTOH it permits access arbitrary header data at runtime, which has previously been completely impossible. - The handling of these expansions needs unifying for all scriptlet types, the trigger scriptlet handling is uuugly. Macro expansion could be transparently done from rpmScriptRun(), but because of their similar syntax, macro expansion needs to happen before query format expansion, and we dont have the header available in rpmScriptrun()
Diffstat (limited to 'tests/rpmgeneral.at')
-rw-r--r--tests/rpmgeneral.at8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/rpmgeneral.at b/tests/rpmgeneral.at
index 114a8c124..73644c204 100644
--- a/tests/rpmgeneral.at
+++ b/tests/rpmgeneral.at
@@ -179,17 +179,23 @@ PKGID
PLATFORM
POLICIES
POSTIN
+POSTINFLAGS
POSTINPROG
POSTTRANS
+POSTTRANSFLAGS
POSTTRANSPROG
POSTUN
+POSTUNFLAGS
POSTUNPROG
PREFIXES
PREIN
+PREINFLAGS
PREINPROG
PRETRANS
+PRETRANSFLAGS
PRETRANSPROG
PREUN
+PREUNFLAGS
PREUNPROG
PROVIDEFLAGS
PROVIDENAME
@@ -222,6 +228,7 @@ TRIGGERCONDS
TRIGGERFLAGS
TRIGGERINDEX
TRIGGERNAME
+TRIGGERSCRIPTFLAGS
TRIGGERSCRIPTPROG
TRIGGERSCRIPTS
TRIGGERTYPE
@@ -231,6 +238,7 @@ V
VENDOR
VERBOSE
VERIFYSCRIPT
+VERIFYSCRIPTFLAGS
VERIFYSCRIPTPROG
VERSION
XPM