diff options
author | jbj <devnull@localhost> | 2004-10-17 18:24:36 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2004-10-17 18:24:36 +0000 |
commit | 5a91608e9134873e5af65dc548f7552f12073d43 (patch) | |
tree | 18b094323fd969a72fa2bb750aaf2a9fa602f32b /build/parsePreamble.c | |
parent | dea95c48df9d7e9b54fbf2e54784938fdacbdde7 (diff) | |
download | librpm-tizen-5a91608e9134873e5af65dc548f7552f12073d43.tar.gz librpm-tizen-5a91608e9134873e5af65dc548f7552f12073d43.tar.bz2 librpm-tizen-5a91608e9134873e5af65dc548f7552f12073d43.zip |
fix: legacy syntax not even close.
- permit Obsoletes: /path/to/file.
CVS patchset: 7474
CVS date: 2004/10/17 18:24:36
Diffstat (limited to 'build/parsePreamble.c')
-rw-r--r-- | build/parsePreamble.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build/parsePreamble.c b/build/parsePreamble.c index ff93cb95a..776f2357d 100644 --- a/build/parsePreamble.c +++ b/build/parsePreamble.c @@ -809,13 +809,14 @@ static int findPreambleTag(Spec spec, /*@out@*/rpmTag * tag, initPreambleList(); for (p = preambleList; p->token != NULL; p++) { - if (p->token && !xstrncasecmp(spec->line, p->token, p->len)) - break; + if (!(p->token && !xstrncasecmp(spec->line, p->token, p->len))) + continue; if (p->obsolete) { rpmError(RPMERR_BADSPEC, _("Obsolete syntax: %s\n"), p->token); p = NULL; } + break; } if (p == NULL || p->token == NULL) return 1; |