xbps_pkgdb_init: initialize xhp->pkgdb_plist if it wasn't before.

This commit is contained in:
Juan RP 2014-03-04 14:59:58 +01:00
parent 0416b067d0
commit ed4a33e4d0

View File

@ -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)