alternatives: fixed replace_alternative_with_symlink test case.
Only 1 expected failure now!
This commit is contained in:
@@ -507,12 +507,10 @@ remove_obsoletes(struct xbps_handle *xhp, char *pkgname, const char *pkgver,
|
|||||||
* Check if current provider in pkgdb is this pkg.
|
* Check if current provider in pkgdb is this pkg.
|
||||||
*/
|
*/
|
||||||
array2 = xbps_dictionary_get(pkgdb_alts, keyname);
|
array2 = xbps_dictionary_get(pkgdb_alts, keyname);
|
||||||
if (array2 == NULL) {
|
if (array2) {
|
||||||
remove_symlinks(xhp, array, keyname);
|
|
||||||
} else {
|
|
||||||
xbps_array_get_cstring_nocopy(array2, 0, &first);
|
xbps_array_get_cstring_nocopy(array2, 0, &first);
|
||||||
if (strcmp(pkgname, first) == 0) {
|
if (strcmp(pkgname, first) == 0) {
|
||||||
remove_symlinks(xhp, array, keyname);
|
remove_symlinks(xhp, array_repo, keyname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -772,8 +772,6 @@ replace_alternative_with_symlink_head() {
|
|||||||
atf_set "descr" "xbps-alternatives: replace alternative group with a symlink"
|
atf_set "descr" "xbps-alternatives: replace alternative group with a symlink"
|
||||||
}
|
}
|
||||||
replace_alternative_with_symlink_body() {
|
replace_alternative_with_symlink_body() {
|
||||||
atf_expect_fail "not fixed yet"
|
|
||||||
|
|
||||||
mkdir -p repo pkg_A/usr/bin
|
mkdir -p repo pkg_A/usr/bin
|
||||||
touch pkg_A/usr/bin/fileA
|
touch pkg_A/usr/bin/fileA
|
||||||
cd repo
|
cd repo
|
||||||
|
|||||||
Reference in New Issue
Block a user