const int rpmFLAGS = RPMSENSE_EQUAL;
-/* rpmlib provides */
-static rpmds rpmlibP = NULL;
-
#undef HASHTYPE
#undef HTKEYTYPE
#undef HTDATATYPE
* Check those dependencies now.
*/
if (dsflags & RPMSENSE_RPMLIB) {
- static int oneshot = -1;
- if (oneshot)
- oneshot = rpmdsRpmlib(&rpmlibP, NULL);
+ if (tsmem->rpmlib == NULL)
+ rpmdsRpmlib(&(tsmem->rpmlib), NULL);
- if (rpmlibP != NULL && rpmdsSearch(rpmlibP, dep) >= 0) {
+ if (tsmem->rpmlib != NULL && rpmdsSearch(tsmem->rpmlib, dep) >= 0) {
rpmdsNotify(dep, "(rpmlib provides)", rc);
goto exit;
}
removedHash removedPackages; /*!< Set of packages being removed. */
rpmal addedPackages; /*!< Set of packages being installed. */
+ rpmds rpmlib; /*!< rpmlib() dependency set. */
rpmte * order; /*!< Packages sorted by dependencies. */
int orderCount; /*!< No. of transaction elements. */
int orderAlloced; /*!< No. of allocated transaction elements. */