summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFlorian Festi <ffesti@redhat.com>2014-02-17 11:27:49 +0100
committerMyungJoo Ham <myungjoo.ham@samsung.com>2017-01-09 23:42:49 -0800
commitc31c49f42b54dcf6edb8804e633e6b6985acbb41 (patch)
treec43edfe5167a381ac93356ed776946a0d94de4f4 /lib
parent002013d7ce56a3d8e253cf276170af58f930a391 (diff)
downloadrpm-c31c49f42b54dcf6edb8804e633e6b6985acbb41.tar.gz
rpm-c31c49f42b54dcf6edb8804e633e6b6985acbb41.tar.bz2
rpm-c31c49f42b54dcf6edb8804e633e6b6985acbb41.zip
Add support for Recommends:, Suggests:, Supplements: and Enhances:
Change-Id: I24f0b1c0e98003a75b097c8afe7be19e21506695 Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/rpmds.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/rpmds.c b/lib/rpmds.c
index 1e6798648..28eda9719 100644
--- a/lib/rpmds.c
+++ b/lib/rpmds.c
@@ -54,6 +54,22 @@ static int dsType(rpmTagVal tag,
t = "Requires";
evr = RPMTAG_REQUIREVERSION;
f = RPMTAG_REQUIREFLAGS;
+ } else if (tag == RPMTAG_SUPPLEMENTNAME) {
+ t = "Supplements";
+ evr = RPMTAG_SUPPLEMENTVERSION;
+ f = RPMTAG_SUPPLEMENTFLAGS;
+ } else if (tag == RPMTAG_ENHANCENAME) {
+ t = "Enhances";
+ evr = RPMTAG_ENHANCEVERSION;
+ f = RPMTAG_ENHANCEFLAGS;
+ } else if (tag == RPMTAG_RECOMMENDNAME) {
+ t = "Recommends";
+ evr = RPMTAG_RECOMMENDVERSION;
+ f = RPMTAG_RECOMMENDFLAGS;
+ } else if (tag == RPMTAG_SUGGESTNAME) {
+ t = "Suggests";
+ evr = RPMTAG_SUGGESTVERSION;
+ f = RPMTAG_SUGGESTFLAGS;
} else if (tag == RPMTAG_CONFLICTNAME) {
t = "Conflicts";
evr = RPMTAG_CONFLICTVERSION;