From c0eb82dd1f2102f2b4899c1e7232086c41d2e805 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 29 Mar 2010 08:58:27 +0300 Subject: 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. --- lib/formats.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/formats.c') 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, ","); -- cgit v1.2.3