time_t BT; /*!< Package build time tie breaker. */
rpmTag tagN; /*!< Header tag. */
int32_t Count; /*!< No. of elements */
+ unsigned int instance; /*!< From rpmdb instance? */
int i; /*!< Element index. */
unsigned l; /*!< Low element (bsearch). */
unsigned u; /*!< High element (bsearch). */
ds->N = names.data;
ds->Count = rpmtdCount(&names);
ds->nopromote = _rpmds_nopromote;
+ ds->instance = headerGetInstance(h);
headerGet(h, tagEVR, &evr, hgflags);
ds->EVR = evr.data;
{
char *evr = headerGetAsString(h, RPMTAG_EVR);
rpmds ds = rpmdsSingle(tagN, headerGetString(h, RPMTAG_NAME), evr, Flags);
+ if (ds) ds->instance = headerGetInstance(h);
free(evr);
return ds;
}
return oBT;
}
+unsigned int rpmdsInstance(rpmds ds)
+{
+ return (ds != NULL) ? ds->instance : 0;
+}
+
int rpmdsNoPromote(const rpmds ds)
{
int nopromote = 0;
rpmTag rpmdsTagN(const rpmds ds);
/** \ingroup rpmds
+ * Return dependency header instance, ie whether the dependency comes from
+ * an installed header or not.
+ * @param ds dependency set
+ * @return header instance of dependency (0 for not installed)
+ */
+unsigned int rpmdsInstance(rpmds ds);
+
+/** \ingroup rpmds
* Return dependency build time.
* @param ds dependency set
* @return dependency build time, 0 on invalid