From adc0643ee4d778d770efb969a5ca19db8715107d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 17 Oct 2014 10:27:58 +0200 Subject: [PATCH] Fully switch to zplists. --- bin/xbps-pkgdb/check.c | 2 +- lib/package_remove.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/xbps-pkgdb/check.c b/bin/xbps-pkgdb/check.c index 80f20a05..0cafa391 100644 --- a/bin/xbps-pkgdb/check.c +++ b/bin/xbps-pkgdb/check.c @@ -94,7 +94,7 @@ check_pkg_integrity(struct xbps_handle *xhp, if (xbps_dictionary_get_cstring_nocopy(opkgd, "metafile-sha256", &sha256)) { buf = xbps_xasprintf("%s/.%s-files.plist", xhp->metadir, pkgname); - filesd = xbps_dictionary_internalize_from_file(buf); + filesd = xbps_dictionary_internalize_from_zfile(buf); rv = xbps_file_hash_check(buf, sha256); free(buf); if (rv == ENOENT) { diff --git a/lib/package_remove.c b/lib/package_remove.c index 5679fea9..1ea5aa30 100644 --- a/lib/package_remove.c +++ b/lib/package_remove.c @@ -268,7 +268,7 @@ xbps_remove_pkg(struct xbps_handle *xhp, const char *pkgver, bool update) /* internalize pkg files dictionary from metadir */ snprintf(metafile, sizeof(metafile), "%s/.%s-files.plist", xhp->metadir, pkgname); - pkgfilesd = xbps_dictionary_internalize_from_file(metafile); + pkgfilesd = xbps_dictionary_internalize_from_zfile(metafile); if (pkgfilesd == NULL) xbps_dbg_printf(xhp, "WARNING: metaplist for %s " "doesn't exist!\n", pkgver);