summaryrefslogtreecommitdiff
path: root/build/rpmfc.c
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-10-23 15:41:24 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-10-23 15:41:24 +0900
commit3ebbe6a9cacaa9356d0a8488ed083f4a45a5b532 (patch)
tree7eb4f47db694670991900b2f240e699d2eca7e22 /build/rpmfc.c
parentbceda01e970b75fd3a50774e0324a6b18b195902 (diff)
downloadrpm-tizen_2.4_base.tar.gz
rpm-tizen_2.4_base.tar.bz2
rpm-tizen_2.4_base.zip
Diffstat (limited to 'build/rpmfc.c')
-rwxr-xr-x[-rw-r--r--]build/rpmfc.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/build/rpmfc.c b/build/rpmfc.c
index a779b6a..5f41b8a 100644..100755
--- a/build/rpmfc.c
+++ b/build/rpmfc.c
@@ -1102,6 +1102,12 @@ static struct DepMsg_s depMsgs[] = {
{ "Obsoletes", { "%{?__find_obsoletes}", NULL, NULL, NULL },
RPMTAG_OBSOLETENAME, RPMTAG_OBSOLETEVERSION, RPMTAG_OBSOLETEFLAGS,
0, -1 },
+ { "Enhances", { "%{?__find_enhances}", NULL, NULL, NULL },
+ RPMTAG_ENHANCESNAME, RPMTAG_ENHANCESVERSION, RPMTAG_ENHANCESFLAGS,
+ RPMSENSE_STRONG, RPMSENSE_STRONG },
+ { "Supplements", { "%{?__find_supplements}", NULL, NULL, NULL },
+ RPMTAG_ENHANCESNAME, RPMTAG_ENHANCESVERSION, RPMTAG_ENHANCESFLAGS,
+ RPMSENSE_STRONG, 0 },
{ NULL, { NULL, NULL, NULL, NULL }, 0, 0, 0, 0, 0 }
};
@@ -1187,6 +1193,14 @@ static rpmRC rpmfcGenerateDependsHelper(const rpmSpec spec, Package pkg, rpmfi f
failnonzero = 0;
tagflags = RPMSENSE_FIND_REQUIRES;
break;
+ case RPMTAG_ENHANCESFLAGS:
+ if (!pkg->autoProv)
+ continue;
+ failnonzero = 0;
+ tagflags = RPMSENSE_FIND_REQUIRES | RPMSENSE_MISSINGOK;
+ if (strcmp(dm->msg, "Supplements") == 0)
+ tagflags |= RPMSENSE_STRONG;
+ break;
default:
continue;
break;