diff --git a/lib/pkgdb.c b/lib/pkgdb.c index c7fef43d..f9d33a4e 100644 --- a/lib/pkgdb.c +++ b/lib/pkgdb.c @@ -126,6 +126,8 @@ xbps_pkgdb_init(struct xbps_handle *xhp) if (xhp->pkgdb != NULL) return 0; + if (xhp->pkgdb_plist == NULL) + xhp->pkgdb_plist = xbps_xasprintf("%s/%s", xhp->metadir, XBPS_PKGDB); if ((rv = xbps_pkgdb_update(xhp, false)) != 0) { if (rv != ENOENT)