diff options
author | jbj <devnull@localhost> | 2000-07-05 20:39:15 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-07-05 20:39:15 +0000 |
commit | a463744b6d4e6e5c0f05730cc77039f4a2e17fd7 (patch) | |
tree | 706b7b087dcc65dc5b357dec2178392c1deb812d /build/reqprov.c | |
parent | 0c6891dc9760a7e4de4844abf09bb474643f25c7 (diff) | |
download | librpm-tizen-a463744b6d4e6e5c0f05730cc77039f4a2e17fd7.tar.gz librpm-tizen-a463744b6d4e6e5c0f05730cc77039f4a2e17fd7.tar.bz2 librpm-tizen-a463744b6d4e6e5c0f05730cc77039f4a2e17fd7.zip |
- change optflags for i386.
- multilib patch, take 1.
CVS patchset: 3920
CVS date: 2000/07/05 20:39:15
Diffstat (limited to 'build/reqprov.c')
-rw-r--r-- | build/reqprov.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/build/reqprov.c b/build/reqprov.c index 989a2f321..529a40097 100644 --- a/build/reqprov.c +++ b/build/reqprov.c @@ -47,10 +47,10 @@ int addReqProv(/*@unused@*/ Spec spec, Header h, flagtag = RPMTAG_REQUIREFLAGS; } - flag = (flag & RPMSENSE_SENSEMASK) | extra; - if (!version) { + flag = (flag & (RPMSENSE_SENSEMASK | RPMSENSE_MULTILIB)) | extra; + + if (!version) version = ""; - } /* Check for duplicate dependencies. */ if (headerGetEntry(h, nametag, NULL, (void **) &names, &len)) { @@ -71,13 +71,19 @@ int addReqProv(/*@unused@*/ Spec spec, Header h, if (strcmp(names[len], name)) continue; if (flagtag && versions != NULL && - (strcmp(versions[len], version) || flags[len] != flag)) + (strcmp(versions[len], version) || + ((flags[len] | RPMSENSE_MULTILIB) != (flag | RPMSENSE_MULTILIB)))) continue; if (indextag && indexes != NULL && indexes[len] != index) continue; /* This is a duplicate dependency. */ duplicate = 1; + + if (flagtag && isDependsMULTILIB(flag) && + !isDependsMULTILIB(flags[len])) + flags[len] |= RPMSENSE_MULTILIB; + break; } FREE(names); |