diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-03-29 08:58:27 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-03-29 08:58:27 +0300 |
commit | c0eb82dd1f2102f2b4899c1e7232086c41d2e805 (patch) | |
tree | ed84188714c96e75d4e0f4abddb7c36eb6346463 /lib/order.c | |
parent | bf2bc18ebb325f081ade65adc2fbb6858f0b8396 (diff) | |
download | librpm-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.c | 4 |
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); |