From 3730f9f5a43d69f55c06b6c547eef1ab3ed7753e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 25 Dec 2013 11:12:03 +0100 Subject: [PATCH] bin/xbps-install/state_cb.c: use pkgver obj from pkgdb. --- bin/xbps-install/state_cb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/xbps-install/state_cb.c b/bin/xbps-install/state_cb.c index 8387bb1e..91e987b3 100644 --- a/bin/xbps-install/state_cb.c +++ b/bin/xbps-install/state_cb.c @@ -89,8 +89,8 @@ state_cb(struct xbps_state_cb_data *xscd, void *cbdata _unused) assert(pkgname); newver = xbps_pkg_version(xscd->arg); pkgd = xbps_pkgdb_get_pkg(xscd->xhp, pkgname); - xbps_dictionary_get_cstring_nocopy(pkgd, "version", &instver); - printf("%s-%s: updating to %s ...\n", pkgname, instver, newver); + xbps_dictionary_get_cstring_nocopy(pkgd, "pkgver", &instver); + printf("%s: updating to %s ...\n", instver, newver); free(pkgname); break; /* success */