xbps_pkgdb_init: initialize xhp->pkgdb_plist if it wasn't before.
This commit is contained in:
parent
0416b067d0
commit
ed4a33e4d0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user