xbps.d(5): 'virtualpkg' can now be used to map any pkg to another.

See NEWS for more information.
This commit is contained in:
Juan RP
2016-03-23 12:46:52 +01:00
parent 897ac238c4
commit 29765271e9
4 changed files with 39 additions and 10 deletions

View File

@@ -340,6 +340,11 @@ xbps_repo_get_pkg(struct xbps_repo *repo, const char *pkg)
if (repo->idx == NULL)
return NULL;
/* Try matching vpkg from configuration files */
if ((pkgd = xbps_find_virtualpkg_in_conf(repo->xhp, repo->idx, pkg)))
return pkgd;
/* ... otherwise match a real pkg */
pkgd = xbps_find_pkg_in_dict(repo->idx, pkg);
if (pkgd) {
xbps_dictionary_set_cstring_nocopy(pkgd,