- Accept the entire build arguments structure along with a spec, these
contain everything that we'll need
- Just a convenience wrapper for buildSpec() for now, more things
to follow...
- Update the sole existing caller accordingly
return rc;
}
-rpmRC buildSpec(rpmts ts, rpmSpec spec, int what, int test)
+static rpmRC buildSpec(rpmts ts, rpmSpec spec, int what, int test)
{
rpmRC rc = RPMRC_OK;
return rc;
}
+
+rpmRC rpmSpecBuild(BTA_t buildArgs, rpmSpec spec)
+{
+ return buildSpec(NULL, spec, buildArgs->buildAmount, buildArgs->noBuild);
+}
/** \ingroup rpmbuild
* Build stages state machine driver.
- * @param ts transaction set
+ * @param buildArgs build arguments
* @param spec spec file control structure
- * @param what bit(s) to enable stages of build
- * @param test don't execute scripts or package if testing
* @return RPMRC_OK on success
*/
-rpmRC buildSpec(rpmts ts, rpmSpec spec, int what, int test);
+rpmRC rpmSpecBuild(BTA_t buildArgs, rpmSpec spec);
#ifdef __cplusplus
}
goto exit;
}
- if (buildSpec(ts, spec, buildAmount, ba->noBuild)) {
+ if (rpmSpecBuild(ba, spec)) {
goto exit;
}