Added support for installing exact dependencies, i.e pkg X depends on 'Y-1.0_1'.
This commit is contained in:
parent
ebc0f27ae1
commit
22a86d82f8
@ -56,7 +56,7 @@
|
|||||||
*/
|
*/
|
||||||
#define XBPS_PKGINDEX_VERSION "1.5"
|
#define XBPS_PKGINDEX_VERSION "1.5"
|
||||||
|
|
||||||
#define XBPS_API_VERSION "20121006"
|
#define XBPS_API_VERSION "20121009"
|
||||||
|
|
||||||
#ifndef XBPS_VERSION
|
#ifndef XBPS_VERSION
|
||||||
#define XBPS_VERSION "UNSET"
|
#define XBPS_VERSION "UNSET"
|
||||||
|
@ -196,7 +196,8 @@ find_repo_deps(struct xbps_handle *xhp,
|
|||||||
* Pass 1: check if required dependency is already installed
|
* Pass 1: check if required dependency is already installed
|
||||||
* and its version is fully matched.
|
* 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;
|
rv = EINVAL;
|
||||||
xbps_dbg_printf(xhp, "failed to get "
|
xbps_dbg_printf(xhp, "failed to get "
|
||||||
"pkgname from `%s'!", reqpkg);
|
"pkgname from `%s'!", reqpkg);
|
||||||
|
@ -192,8 +192,8 @@ sort_pkg_rundeps(struct xbps_handle *xhp,
|
|||||||
again:
|
again:
|
||||||
for (i = idx; i < prop_array_count(pkg_rundeps); i++) {
|
for (i = idx; i < prop_array_count(pkg_rundeps); i++) {
|
||||||
prop_array_get_cstring_nocopy(pkg_rundeps, i, &str);
|
prop_array_get_cstring_nocopy(pkg_rundeps, i, &str);
|
||||||
pkgnamedep = xbps_pkgpattern_name(str);
|
if (((pkgnamedep = xbps_pkgpattern_name(str)) == NULL) &&
|
||||||
if (pkgnamedep == NULL) {
|
((pkgnamedep = xbps_pkg_name(str)) == NULL)) {
|
||||||
rv = ENOMEM;
|
rv = ENOMEM;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user