rc = RPMRC_FAIL;
/* XXX notify callback on error. */
- psm->what = RPMCALLBACK_UNPACK_ERROR;
- psm->amount = 0;
- psm->total = 0;
- rpmpsmNext(psm, PSM_NOTIFY);
-
+ rpmtsNotify(ts, psm->te, RPMCALLBACK_UNPACK_ERROR, 0, 0);
break;
}
}
psm->goalName, cpioStrerror(rc));
/* XXX notify callback on error. */
- psm->what = RPMCALLBACK_CPIO_ERROR;
- psm->amount = 0;
- psm->total = 0;
- rpmpsmNext(psm, PSM_NOTIFY);
+ rpmtsNotify(ts, psm->te, RPMCALLBACK_CPIO_ERROR, 0, 0);
}
psm->failedFile = _free(psm->failedFile);