20 lines
811 B
Diff
20 lines
811 B
Diff
|
--- ./build/parseReqs.c.orig 2014-02-21 12:25:51.259664860 +0000
|
||
|
+++ ./build/parseReqs.c 2014-02-21 12:28:07.545664619 +0000
|
||
|
@@ -178,8 +178,14 @@ rpmRC parseRCPOT(rpmSpec spec, Package p
|
||
|
if (rpmCharCheck(spec, EVR, ve-v, ".-_+:%{}~")) goto exit;
|
||
|
|
||
|
/* While ':' and '-' are valid, only one of each is valid. */
|
||
|
- if (checkSep(EVR, '-', &emsg) || checkSep(EVR, ':', &emsg))
|
||
|
- goto exit;
|
||
|
+ if (checkSep(EVR, '-', &emsg) || checkSep(EVR, ':', &emsg)) {
|
||
|
+ if (tagflags & (RPMSENSE_FIND_REQUIRES|RPMSENSE_FIND_PROVIDES)) {
|
||
|
+ rpmlog(RPMLOG_WARNING, "%s: %s\n", emsg, r);
|
||
|
+ } else {
|
||
|
+ rpmlog(RPMLOG_WARNING, _("line %d: %s: %s\n"), spec->lineNum, emsg, spec->line);
|
||
|
+ }
|
||
|
+ emesg = _free(emsg);
|
||
|
+ }
|
||
|
|
||
|
re = ve; /* ==> next token after EVR string starts here */
|
||
|
} else
|