Skip to content

Commit

Permalink
rpmbuild: Generate src.rpm with dynamic BRs with --force
Browse files Browse the repository at this point in the history
Closes: #760
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
  • Loading branch information
ignatenkobrain committed Jun 26, 2019
1 parent 4c8b584 commit a7a5650
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/build.c
Expand Up @@ -305,7 +305,9 @@ static rpmRC buildSpec(rpmts ts, BTA_t buildArgs, rpmSpec spec, int what)
(rc == RPMRC_MISSINGBUILDREQUIRES))
rc = doCheckBuildRequires(ts, spec, test);
if (rc == RPMRC_MISSINGBUILDREQUIRES) {
if (what & RPMBUILD_DUMPBUILDREQUIRES) {
if (spec->flags & RPMSPEC_FORCE) {
rc = RPMRC_OK;
} else if (what & RPMBUILD_DUMPBUILDREQUIRES) {
/* Create buildreqs package */
char *nvr = headerGetAsString(spec->packages->header, RPMTAG_NVR);
rasprintf(&spec->sourceRpmName, "%s.buildreqs.nosrc.rpm", nvr);
Expand Down

0 comments on commit a7a5650

Please sign in to comment.