projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c7bcba
)
Map PreReq into Requires(pre,preun) at build
author
Panu Matilainen
<pmatilai@redhat.com>
Mon, 1 Jun 2009 10:28:50 +0000
(13:28 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Mon, 1 Jun 2009 10:28:50 +0000
(13:28 +0300)
- this gives a more reasonable mapping to former behavior of PreReq
when cutting loops
build/parseReqs.c
patch
|
blob
|
history
diff --git
a/build/parseReqs.c
b/build/parseReqs.c
index
a983496
..
73c6cdc
100644
(file)
--- a/
build/parseReqs.c
+++ b/
build/parseReqs.c
@@
-59,7
+59,8
@@
rpmRC parseRCPOT(rpmSpec spec, Package pkg, const char *field, rpmTag tagN,
h = spec->buildRestrictions;
break;
case RPMTAG_PREREQ:
- tagflags |= RPMSENSE_PREREQ;
+ /* XXX map legacy PreReq into Requires(pre,preun) */
+ tagflags |= (RPMSENSE_SCRIPT_PRE|RPMSENSE_SCRIPT_PREUN);
h = pkg->header;
break;
case RPMTAG_TRIGGERPREIN: