Added support for installing exact dependencies, i.e pkg X depends on 'Y-1.0_1'.

This commit is contained in:
Juan RP
2012-10-09 07:35:59 +02:00
parent ebc0f27ae1
commit 22a86d82f8
3 changed files with 5 additions and 4 deletions

View File

@ -196,7 +196,8 @@ find_repo_deps(struct xbps_handle *xhp,
* Pass 1: check if required dependency is already installed
* and its version is fully matched.
*/
if ((pkgname = xbps_pkgpattern_name(reqpkg)) == NULL) {
if (((pkgname = xbps_pkgpattern_name(reqpkg)) == NULL) &&
((pkgname = xbps_pkg_name(reqpkg)) == NULL)) {
rv = EINVAL;
xbps_dbg_printf(xhp, "failed to get "
"pkgname from `%s'!", reqpkg);