From: Panu Matilainen Date: Tue, 7 Aug 2012 05:17:02 +0000 (+0300) Subject: Extra qualifiers like (postun) are not valid with legacy PreReq X-Git-Tag: rpm-4.11.0-alpha~273 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=01706306d152d55cebc7ce13958207b4c674fe30;p=platform%2Fupstream%2Frpm.git Extra qualifiers like (postun) are not valid with legacy PreReq --- diff --git a/build/parsePreamble.c b/build/parsePreamble.c index dd9a52b..5a03ca1 100644 --- a/build/parsePreamble.c +++ b/build/parsePreamble.c @@ -774,7 +774,6 @@ static rpmRC handlePreambleTag(rpmSpec spec, Package pkg, rpmTagVal tag, break; case RPMTAG_ORDERFLAGS: case RPMTAG_REQUIREFLAGS: - case RPMTAG_PREREQ: if (parseBits(lang, installScriptBits, &tagflags)) { rpmlog(RPMLOG_ERR, _("line %d: Bad %s: qualifiers: %s\n"), spec->lineNum, rpmTagGetName(tag), spec->line); @@ -783,6 +782,7 @@ static rpmRC handlePreambleTag(rpmSpec spec, Package pkg, rpmTagVal tag, if (parseRCPOT(spec, pkg, field, tag, 0, tagflags)) goto exit; break; + case RPMTAG_PREREQ: case RPMTAG_BUILDPREREQ: case RPMTAG_BUILDREQUIRES: case RPMTAG_BUILDCONFLICTS: