summaryrefslogtreecommitdiff
path: root/lib/order.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/order.c
parentbf2bc18ebb325f081ade65adc2fbb6858f0b8396 (diff)
downloadlibrpm-tizen-c0eb82dd1f2102f2b4899c1e7232086c41d2e805.tar.gz
librpm-tizen-c0eb82dd1f2102f2b4899c1e7232086c41d2e805.tar.bz2
librpm-tizen-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/order.c')
-rw-r--r--lib/order.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/order.c b/lib/order.c
index f82ca6ac4..e0b69242c 100644
--- a/lib/order.c
+++ b/lib/order.c
@@ -165,8 +165,8 @@ static inline int addRelation(rpmts ts,
dsflags = rpmdsFlags(requires);
- /* Avoid rpmlib feature and package config dependencies */
- if (dsflags & (RPMSENSE_RPMLIB|RPMSENSE_CONFIG))
+ /* Avoid dependendencies which are not relevant for ordering */
+ if (dsflags & (RPMSENSE_RPMLIB|RPMSENSE_CONFIG|RPMSENSE_PRETRANS))
return 0;
q = rpmalSatisfiesDepend(al, requires);