diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-01-25 15:27:28 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-01-25 15:27:28 +0200 |
commit | d7e2a04d68dea4d1c7dbaf457b5b4210dfa452f2 (patch) | |
tree | 0edecd826d4368bfcdb175f128576cd5259b65fb /build | |
parent | 88e63b050cfd3ba28cb44e75b3ac31fdf5fe9909 (diff) | |
download | librpm-tizen-d7e2a04d68dea4d1c7dbaf457b5b4210dfa452f2.tar.gz librpm-tizen-d7e2a04d68dea4d1c7dbaf457b5b4210dfa452f2.tar.bz2 librpm-tizen-d7e2a04d68dea4d1c7dbaf457b5b4210dfa452f2.zip |
Teach rpm about post-transaction dependencies
- %posttrans dependencies have their own peculiar semantics, they're
install-only dependencies which have no implications on ordering.
Diffstat (limited to 'build')
-rw-r--r-- | build/parsePreamble.c | 1 | ||||
-rw-r--r-- | build/parseScript.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/build/parsePreamble.c b/build/parsePreamble.c index 3d8b859d8..e4f4e0a05 100644 --- a/build/parsePreamble.c +++ b/build/parsePreamble.c @@ -309,6 +309,7 @@ static struct tokenBits_s const installScriptBits[] = { { "rpmlib", RPMSENSE_RPMLIB }, { "verify", RPMSENSE_SCRIPT_VERIFY }, { "pretrans", RPMSENSE_PRETRANS }, + { "posttrans", RPMSENSE_POSTTRANS }, { NULL, 0 } }; diff --git a/build/parseScript.c b/build/parseScript.c index d4b22935a..87b3d58d4 100644 --- a/build/parseScript.c +++ b/build/parseScript.c @@ -139,7 +139,7 @@ int parseScript(rpmSpec spec, int parsePart) break; case PART_POSTTRANS: tag = RPMTAG_POSTTRANS; - tagflags = 0; + tagflags = RPMSENSE_POSTTRANS; progtag = RPMTAG_POSTTRANSPROG; flagtag = RPMTAG_POSTTRANSFLAGS; partname = "%posttrans"; |