diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-01-03 08:28:49 +0200 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-06-11 17:48:02 +0300 |
commit | 5a4119d5243a455290b824d2f3ed2534041c3114 (patch) | |
tree | e64064bb34e7210b761995e5afa7c3497ac92cc1 | |
parent | f9a3c298d1f5ae67f4fbe2cb9ffa92b79409f0bb (diff) | |
download | librpm-tizen-5a4119d5243a455290b824d2f3ed2534041c3114.tar.gz librpm-tizen-5a4119d5243a455290b824d2f3ed2534041c3114.tar.bz2 librpm-tizen-5a4119d5243a455290b824d2f3ed2534041c3114.zip |
Ignore unknown tags
Might be e.g. a macro defined only in target distro. We're only
interested in a few tags i.e. name, version, release etc.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r-- | build/parsePreamble.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/build/parsePreamble.c b/build/parsePreamble.c index 523e452e3..c2a7f6ead 100644 --- a/build/parsePreamble.c +++ b/build/parsePreamble.c @@ -1035,16 +1035,16 @@ int parsePreamble(rpmSpec spec, int initialPackage) SKIPSPACE(linep); if (*linep != '\0') { if (findPreambleTag(spec, &tag, ¯o, lang)) { - rpmlog(RPMLOG_ERR, _("line %d: Unknown tag: %s\n"), + rpmlog(RPMLOG_INFO, _("line %d: Unknown tag: %s\n"), spec->lineNum, spec->line); - goto exit; - } - if (handlePreambleTag(spec, pkg, tag, macro, lang)) { - goto exit; - } - if (spec->BANames && !spec->recursing) { - res = PART_BUILDARCHITECTURES; - goto exit; + } else { + if (handlePreambleTag(spec, pkg, tag, macro, lang)) { + goto exit; + } + if (spec->BANames && !spec->recursing) { + res = PART_BUILDARCHITECTURES; + goto exit; + } } } if ((rc = |