summaryrefslogtreecommitdiff
path: root/tests/rpmgeneral.at
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2022-09-08 09:53:07 +0300
committerFlorian Festi <ffesti@redhat.com>2022-09-26 13:00:05 +0200
commitdb46bd8bd1af3868163a88e73ee9310d896658b7 (patch)
treec2ccadd2ef3b0cec2b524c9124ba0d227c1d429c /tests/rpmgeneral.at
parent94789619484110100b65c23ae4b61c3fdb422dd1 (diff)
downloadrpm-db46bd8bd1af3868163a88e73ee9310d896658b7.tar.gz
Add support for %preuntrans and %postuntrans scriptlets
These are obviously the long lost uninstall-time counterparts of %pretrans and %posttrans. %preuntrans is easy but %postuntrans is the reason this hasn't been implemented so far: by the time it's supposed to execute, the header will be gone. Work around this by allowing the rpmte to hold on to its header if it has a %postuntrans scriptlet. Cheapskate on transaction flags and reuse pre/posttrans flags for these uninstall counterparts too, adding separate flags and disablers just doesn't seem worth it, especially as we're quite short of free bits. Fixes: #2119
Diffstat (limited to 'tests/rpmgeneral.at')
-rw-r--r--tests/rpmgeneral.at6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/rpmgeneral.at b/tests/rpmgeneral.at
index 755ebce1b..ab38d7860 100644
--- a/tests/rpmgeneral.at
+++ b/tests/rpmgeneral.at
@@ -227,6 +227,9 @@ POSTTRANSPROG
POSTUN
POSTUNFLAGS
POSTUNPROG
+POSTUNTRANS
+POSTUNTRANSFLAGS
+POSTUNTRANSPROG
PREFIXES
PREIN
PREINFLAGS
@@ -237,6 +240,9 @@ PRETRANSPROG
PREUN
PREUNFLAGS
PREUNPROG
+PREUNTRANS
+PREUNTRANSFLAGS
+PREUNTRANSPROG
PROVIDEFLAGS
PROVIDENAME
PROVIDENEVRS