diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2019-10-08 10:40:56 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2019-11-18 12:46:29 +0200 |
commit | 70666bb619d6af91c3b5b6e230b0e81b1188743f (patch) | |
tree | cc21923c28da1ed2e086380ae27cc01b7b8e2cb8 | |
parent | ebbad2909465707258962850547699d6cb0c6d83 (diff) | |
download | rpm-70666bb619d6af91c3b5b6e230b0e81b1188743f.tar.gz |
Stop on invalid dynamic buildrequires
(cherry picked from commit 35fb5d7367378ccb0f4a18e54ec28bc2f7e435e7)
-rw-r--r-- | build/build.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build/build.c b/build/build.c index 04c59ad5b..42f9382f5 100644 --- a/build/build.c +++ b/build/build.c @@ -200,8 +200,9 @@ static int doBuildRequires(rpmSpec spec, int test) outc = argvCount(output); for (int i = 0; i < outc; i++) { - parseRCPOT(spec, spec->sourcePackage, output[i], RPMTAG_REQUIRENAME, - 0, RPMSENSE_FIND_REQUIRES, addReqProvPkg, NULL); + if (parseRCPOT(spec, spec->sourcePackage, output[i], RPMTAG_REQUIRENAME, + 0, RPMSENSE_FIND_REQUIRES, addReqProvPkg, NULL)) + goto exit; } rpmdsPutToHeader( |