rpmsenseFlags * Flags; /*!< Bit(s) identifying context/comparison. */
rpm_color_t * Color; /*!< Bit(s) calculated from file color(s). */
int32_t * Refs; /*!< No. of file refs. */
- time_t BT; /*!< Package build time tie breaker. */
rpmTag tagN; /*!< Header tag. */
int32_t Count; /*!< No. of elements */
unsigned int instance; /*!< From rpmdb instance? */
}
}
- ds->BT = headerGetNumber(h, RPMTAG_BUILDTIME);
ds->Color = xcalloc(ds->Count, sizeof(*ds->Color));
ds->Refs = xcalloc(ds->Count, sizeof(*ds->Refs));
ds = rpmdsLink(ds);
ds = xcalloc(1, sizeof(*ds));
ds->Type = Type;
ds->tagN = tagN;
- ds->BT = time(NULL);
ds->Count = 1;
ds->nopromote = _rpmds_nopromote;
ds->instance = instance;
return tagN;
}
-time_t rpmdsBT(const rpmds ds)
-{
- time_t BT = 0;
- if (ds != NULL && ds->BT > 0)
- BT = ds->BT;
- return BT;
-}
-
-time_t rpmdsSetBT(const rpmds ds, time_t BT)
-{
- time_t oBT = 0;
- if (ds != NULL) {
- oBT = ds->BT;
- ds->BT = BT;
- }
- return oBT;
-}
-
unsigned int rpmdsInstance(rpmds ds)
{
return (ds != NULL) ? ds->instance : 0;
unsigned int rpmdsInstance(rpmds ds);
/** \ingroup rpmds
- * Return dependency build time.
- * @param ds dependency set
- * @return dependency build time, 0 on invalid
- */
-time_t rpmdsBT(const rpmds ds);
-
-/** \ingroup rpmds
- * Set dependency build time.
- * @param ds dependency set
- * @param BT build time
- * @return dependency build time, 0 on invalid
- */
-time_t rpmdsSetBT(const rpmds ds, time_t BT);
-
-/** \ingroup rpmds
* Return current "Don't promote Epoch:" flag.
*
* This flag controls for Epoch: promotion when a dependency set is
}
static PyObject *
-rpmds_BT(rpmdsObject * s)
-{
- return Py_BuildValue("i", (int) rpmdsBT(s->ds));
-}
-
-static PyObject *
rpmds_TagN(rpmdsObject * s)
{
return Py_BuildValue("i", rpmdsTagN(s->ds));
"ds.EVR -> EVR - Return current EVR.\n" },
{"Flags", (PyCFunction)rpmds_Flags, METH_NOARGS,
"ds.Flags -> Flags - Return current Flags.\n" },
- {"BT", (PyCFunction)rpmds_BT, METH_NOARGS,
- "ds.BT -> BT - Return build time.\n" },
{"TagN", (PyCFunction)rpmds_TagN, METH_NOARGS,
"ds.TagN -> TagN - Return current TagN.\n" },
{"Color", (PyCFunction)rpmds_Color, METH_NOARGS,