summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJindrich Novy <jnovy@redhat.com>2008-03-31 14:13:59 +0200
committerJindrich Novy <jnovy@redhat.com>2008-03-31 14:15:33 +0200
commit3e4b229e7188a5ee42770089bb9a78dc158b5302 (patch)
treea2b39798b10fca9410a0d98b9bc2dffc406aa748 /build
parente36758060cbdbf463ded17b9b0143b719575244a (diff)
downloadrpm-3e4b229e7188a5ee42770089bb9a78dc158b5302.tar.gz
rpm-3e4b229e7188a5ee42770089bb9a78dc158b5302.tar.bz2
rpm-3e4b229e7188a5ee42770089bb9a78dc158b5302.zip
Make ExcludeArch/ExclusiveArch/ExcludeOS/ExclusiveOS actually work
Diffstat (limited to 'build')
-rw-r--r--build/parsePreamble.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/build/parsePreamble.c b/build/parsePreamble.c
index 9b7295cd7..81c5c70dd 100644
--- a/build/parsePreamble.c
+++ b/build/parsePreamble.c
@@ -194,15 +194,18 @@ static int isMemberInEntry(Header h, const char *name, rpmTag tag)
const char ** names;
rpmTagType type;
rpm_count_t count;
+ int found = 0;
if (!hge(h, tag, &type, (rpm_data_t *)&names, &count))
return -1;
while (count--) {
- if (!rstrcasecmp(names[count], name))
+ if (!rstrcasecmp(names[count], name)) {
+ found = 1;
break;
+ }
}
names = hfd(names, type);
- return (count >= 0 ? 1 : 0);
+ return found;
}
/**