- Not needed by rpmbuild itself currently, but permits retrieving the
build dependency information in a format that's better suited for
further processing than an rpm problem set.
rpmps rpmSpecCheckDeps(rpmts ts, rpmSpec spec);
/** \ingroup rpmbuild
+ * Retrieve build dependency set from spec.
+ * @param spec parsed spec control structure
+ * @param tag dependency tag
+ * @return dependency set of tag (or NULL)
+ */
+rpmds rpmSpecDS(rpmSpec spec, rpmTag tag);
+
+/** \ingroup rpmbuild
* Build stages state machine driver.
* @param buildArgs build arguments
* @param spec spec file control structure
return spec;
}
+rpmds rpmSpecDS(rpmSpec spec, rpmTag tag)
+{
+ return (spec != NULL) ? rpmdsNew(spec->buildRestrictions, tag, 0) : NULL;
+}
+
rpmps rpmSpecCheckDeps(rpmts ts, rpmSpec spec)
{
rpmps probs = NULL;