Re-use pkgname from unpack to handle config files.

This commit is contained in:
Juan RP
2013-03-08 10:11:16 +01:00
parent faacbd4a96
commit c504a73f08
3 changed files with 6 additions and 3 deletions

View File

@ -64,7 +64,8 @@ xbps_entry_install_conf_file(struct xbps_handle *xhp,
prop_dictionary_t filesd,
struct archive_entry *entry,
const char *entry_pname,
const char *pkgver)
const char *pkgver,
const char *pkgname)
{
prop_dictionary_t forigd;
prop_object_t obj, obj2;
@ -89,7 +90,7 @@ xbps_entry_install_conf_file(struct xbps_handle *xhp,
xbps_dbg_printf(xhp, "%s: processing conf_file %s\n",
pkgver, entry_pname);
forigd = xbps_pkgdb_get_pkg_metadata(xhp, pkgver);
forigd = xbps_pkgdb_get_pkg_metadata(xhp, pkgname);
if (forigd == NULL) {
xbps_dbg_printf(xhp, "%s: conf_file %s not currently "
"installed\n", pkgver, entry_pname);