- this lets us track whether the package itself failed or if it
was cancelled due to parent failure
int rpmteMarkFailed(rpmte te, rpmts ts)
{
rpmtsi pi = rpmtsiInit(ts);
- int rc = 0;
rpmte p;
- te->failed = 1;
+ te->failed++;
/* XXX we can do a much better here than this... */
while ((p = rpmtsiNext(pi, TR_REMOVED))) {
if (rpmteDependsOn(p) == te) {
- p->failed = 1;
+ p->failed++;
}
}
rpmtsiFree(pi);
- return rc;
+ return te->failed;
}
int rpmteFailed(rpmte te)
fnpyKey rpmteKey(rpmte te);
/** \ingroup rpmte
- * Return failed status of transaction element.
+ * Return failure status of transaction element.
+ * If the element itself failed, this is 1, larger count means one of
+ * it's parents failed.
* @param te transaction element
- * @return 1 if transaction element (or its parents) failed
+ * @return number of failures for this transaction element
*/
int rpmteFailed(rpmte te);