forked from ariadne/pkgconf
pkg: make fuzzy Provides matching for PKG_CMP_NOT_EQUAL ops more correct
parent
81679fa0d8
commit
4fcda862a4
|
@ -988,10 +988,10 @@ static const pkgconf_pkg_provides_vermatch_rule_t pkgconf_pkg_provides_vermatch_
|
|||
.depcmp = pkgconf_pkg_comparator_ne,
|
||||
.rulecmp = {
|
||||
[PKGCONF_CMP_ANY] = pkgconf_pkg_comparator_none,
|
||||
[PKGCONF_CMP_LESS_THAN] = pkgconf_pkg_comparator_ne,
|
||||
[PKGCONF_CMP_GREATER_THAN] = pkgconf_pkg_comparator_ne,
|
||||
[PKGCONF_CMP_LESS_THAN_EQUAL] = pkgconf_pkg_comparator_ne,
|
||||
[PKGCONF_CMP_GREATER_THAN_EQUAL] = pkgconf_pkg_comparator_ne,
|
||||
[PKGCONF_CMP_LESS_THAN] = pkgconf_pkg_comparator_gte,
|
||||
[PKGCONF_CMP_GREATER_THAN] = pkgconf_pkg_comparator_lte,
|
||||
[PKGCONF_CMP_LESS_THAN_EQUAL] = pkgconf_pkg_comparator_gt,
|
||||
[PKGCONF_CMP_GREATER_THAN_EQUAL] = pkgconf_pkg_comparator_lt,
|
||||
[PKGCONF_CMP_EQUAL] = pkgconf_pkg_comparator_ne,
|
||||
[PKGCONF_CMP_NOT_EQUAL] = pkgconf_pkg_comparator_eq
|
||||
}
|
||||
|
|
|
@ -326,9 +326,9 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-bar >= 1.
|
|||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-bar <= 1.1.1'; echo \$?" \
|
||||
"0"
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-bar != 1.1.0'; echo \$?" \
|
||||
"1"
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-bar != 1.1.1'; echo \$?" \
|
||||
"0"
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-bar != 1.1.1'; echo \$?" \
|
||||
"1"
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-bar > 1.1.1'; echo \$?" \
|
||||
"0"
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-bar <= 1.1.0'; echo \$?" \
|
||||
|
@ -374,11 +374,11 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-quux <= 1
|
|||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-quux <= 1.1.9'; echo \$?" \
|
||||
"0"
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-quux != 1.2.0'; echo \$?" \
|
||||
"1"
|
||||
"0"
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-quux != 1.1.0'; echo \$?" \
|
||||
"0"
|
||||
"1"
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-quux != 1.0.0'; echo \$?" \
|
||||
"0"
|
||||
"1"
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-quux > 1.1.9'; echo \$?" \
|
||||
"0"
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-quux > 1.2.0'; echo \$?" \
|
||||
|
@ -402,9 +402,9 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-moo >= 1.
|
|||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-moo <= 1.2.0'; echo \$?" \
|
||||
"0"
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-moo != 1.1.0'; echo \$?" \
|
||||
"0"
|
||||
"1"
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-moo != 1.0.0'; echo \$?" \
|
||||
"0"
|
||||
"1"
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-moo > 1.1.9'; echo \$?" \
|
||||
"0"
|
||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs 'provides-test-moo > 1.2.0'; echo \$?" \
|
||||
|
|
Loading…
Reference in New Issue