pkg: use pkgconf_pkg_t.realname instead of pkgconf_pkg_t.id for injecting the default provides entry

This issue was noticed while porting pkgconf to Windows.

ref #118
pull/119/head
William Pitcock 2017-06-16 11:49:26 -05:00
parent f7e9d61f4d
commit 0c22b4d8a1
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ pkgconf_pkg_new_from_file(pkgconf_client_t *client, const char *filename, FILE *
return NULL;
}
pkgconf_dependency_add(client, &pkg->provides, pkg->id, pkg->version, PKGCONF_CMP_EQUAL);
pkgconf_dependency_add(client, &pkg->provides, pkg->realname, pkg->version, PKGCONF_CMP_EQUAL);
return pkgconf_pkg_ref(client, pkg);
}