diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-09-06 10:11:49 +0300 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-06-11 17:48:03 +0300 |
commit | 81228b7becb2612321adc779755facb4d93596e4 (patch) | |
tree | c5773208434f899bec2f76725f43f40d7eb5cf6a | |
parent | cb7a25fabf657e4b664ccff678f25f3cfb09a8ce (diff) | |
download | librpm-tizen-81228b7becb2612321adc779755facb4d93596e4.tar.gz librpm-tizen-81228b7becb2612321adc779755facb4d93596e4.tar.bz2 librpm-tizen-81228b7becb2612321adc779755facb4d93596e4.zip |
Ignore bad expressions in %if conditionals
Yet another hack to allow successful parsing of spec files in host
environment.
Change-Id: Ie47ee06b13d3e8a79e583fc6ec97350e45237cca
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r-- | build/parseSpec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/parseSpec.c b/build/parseSpec.c index 729d4fad9..fb137047a 100644 --- a/build/parseSpec.c +++ b/build/parseSpec.c @@ -352,9 +352,9 @@ int readLine(rpmSpec spec, int strip) match = parseExpressionBoolean(spec, s); if (match < 0) { rpmlog(RPMLOG_ERR, - _("%s:%d: bad %%if condition\n"), + _("%s:%d: bad %%if condition, continuing nevertheless\n"), ofi->fileName, ofi->lineNum); - return PART_ERROR; + match = 0; } } else if (ISMACRO(s, "%else")) { if (! spec->readStack->next) { |