summaryrefslogtreecommitdiff
path: root/lib/formats.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-03-29 08:58:27 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-03-29 08:58:27 +0300
commitc0eb82dd1f2102f2b4899c1e7232086c41d2e805 (patch)
treeed84188714c96e75d4e0f4abddb7c36eb6346463 /lib/formats.c
parentbf2bc18ebb325f081ade65adc2fbb6858f0b8396 (diff)
downloadrpm-c0eb82dd1f2102f2b4899c1e7232086c41d2e805.tar.gz
rpm-c0eb82dd1f2102f2b4899c1e7232086c41d2e805.tar.bz2
rpm-c0eb82dd1f2102f2b4899c1e7232086c41d2e805.zip
Teach rpm about pre-transaction dependencies
- A pre-transaction dependency is generally anything that must be available at the start of the transaction, and cannot be resolved by packages *in* the transaction. This lets %pretrans scriptlet dependencies be expressed correctly, and could be also used for other kinds of pre-conditions. - rpmlib() dependencies are a special case of pre-trans dependencies but leaving them handled separately as they cannot be provided by anything in rpmdb either, whereas pretrans dependencies can.
Diffstat (limited to 'lib/formats.c')
-rw-r--r--lib/formats.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/formats.c b/lib/formats.c
index c13f46d92..07009553c 100644
--- a/lib/formats.c
+++ b/lib/formats.c
@@ -254,6 +254,8 @@ static char * deptypeFormat(rpmtd td, char * formatPrefix)
argvAdd(&sdeps, "auto");
if (item & RPMSENSE_PREREQ)
argvAdd(&sdeps, "prereq");
+ if (item & RPMSENSE_PRETRANS)
+ argvAdd(&sdeps, "pretrans");
if (sdeps) {
val = argvJoin(sdeps, ",");