pkgdb: switch to zplists by default.

This commit is contained in:
Juan RP
2014-10-17 10:11:56 +02:00
parent 47310d3408
commit 83f5e35ec7
3 changed files with 9 additions and 10 deletions

View File

@@ -50,7 +50,7 @@ pkgdb038(struct xbps_handle *xhp, const char *opkgdb_plist)
* - <metadir>/pkgdb-0.38.plist
* - <metadir>/.<pkgname>-files.plist
*/
opkgdb = xbps_dictionary_internalize_from_file(opkgdb_plist);
opkgdb = xbps_dictionary_internalize_from_zfile(opkgdb_plist);
if (opkgdb == NULL)
return EINVAL;
@@ -93,7 +93,7 @@ pkgdb038(struct xbps_handle *xhp, const char *opkgdb_plist)
* Copy pkg metadata objs to the new pkgdb.
*/
pkgmeta = xbps_xasprintf("%s/.%s.plist", xhp->metadir, pkgname);
pkgmetad = xbps_dictionary_internalize_from_file(pkgmeta);
pkgmetad = xbps_dictionary_internalize_from_zfile(pkgmeta);
if (pkgmetad == NULL) {
rv = EINVAL;
xbps_dbg_printf(xhp, "%s: cannot open %s: %s\n",